0

lập trình ứng dụng cho trạm phân loại

Lập trình ứng dụng cho giao thức UDP

Lập trình ứng dụng cho giao thức UDP

Kỹ thuật lập trình

... khác sử dụng để xử lý ứng dụng thực tế 178 Sưu t m b i: www.daihoc.com.vn packet Đọc gói tin Chuyển gói tin vào DatagramSocket DatagramSocket Ứng dụng UDP DatagramPacket Hình 7.1 Khi ứng dụng muốn ... nhỏ trình tự đoạn khơng quan trọng  Khơng cần thiết lập liên kết  Ứng dụng không gửi liệu quan trọng  Không cần truyền lại gói tin  Băng thơng mạng đóng vai trò quan trọng Việc cài đặt ứng dụng ... www.daihoc.com.vn Bảng 7.3 1.5 Khi nên sử dụng UDP Rất nhiều ứng dụng Internet sử dụng UDP Dựa ưu nhược điểm UDP kết luận UDP có ích khi:  Sử dụng cho phương thức truyền broadcasting multicasting...
  • 20
  • 893
  • 9
Lập trình ứng dụng cho iPhone part 15

Lập trình ứng dụng cho iPhone part 15

Kỹ thuật lập trình

... can also some slightly more complex things, either during setup or at runtime At setup you can choose to create a navigational hierarchy and push a user into it before he or she takes any actions ... your program 15.3 Using the flipside controller MainWindow.xib To create a flipside controller, choose the Utility Application template when you start a new projRootViewController ect It will ... dismissModalViewControllerAnimated:YES]; You could design your own modal view controllers for when you want to have users make a choice before returning them to their regular program More commonly, you’ll use picker controllers...
  • 18
  • 546
  • 0
Lập trình ứng dụng cho iPhone part 18

Lập trình ứng dụng cho iPhone part 18

Kỹ thuật lập trình

... state You’re placing buttons on the toolbar that call three methods: choosePic:, takePic: (when a camera’s available), and savePic: choosePic: C and takePic: D are similar methods Each calls up the ... integrated into the rest of your application, it’s a pretty good choice—it often works well for video, but it’s a somewhat more questionable choice for audio The Media Player framework includes two classes: ... [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(choosePic:)]; UIBarButtonItem *camButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCamera...
  • 22
  • 407
  • 0
Lập trình ứng dụng cho iPhone part 19

Lập trình ứng dụng cho iPhone part 19

Kỹ thuật lập trình

... the user pushes the action button and activates choosePic: Listing 19.7 The important bits of a view controller for a photodraw program -(IBAction)choosePic:(id)sender { UIImagePickerController ... make up a drawing When you’ve got that in hand, you have to something with it There are three main choices: stroke the path, fill the path, or turn it into a clipping path These functions are all ... path at the end You can select colors from a variety of color spaces, which are different ways to choose colors They include RGB (red-green-blue), RGBA (red-green-blue-alpha), CMYK (cyan-magenta-yellow-black),...
  • 30
  • 621
  • 0
Lập trình ứng dụng cho iPhone part 20

Lập trình ứng dụng cho iPhone part 20

Kỹ thuật lập trình

... initWithURL: requestWithURL:cachePolicy:timeoutInterval: Creates a request with specific caching choices; equivalent to initWithURL: cachePolicy:timeoutInterval: By default, an NSURLRequest is ... whenever the user touches the web view, but we wanted to show the UIWebView delegate methods, so we chose this slightly more circuitous route Figure 20.2 The thumbnail And that’s it—a simple web thumbnail ... method has its own advantages, and we continue to think that web development is often a better choice when you’re interacting 422 CHAPTER 20 The web: web views and internet protocols with the...
  • 27
  • 485
  • 0
Lập trình ứng dụng cho iPhone part 21

Lập trình ứng dụng cho iPhone part 21

Kỹ thuật lập trình

... mechanism specialized for searches UISegmentedControl UIControl A control for making one of several choices UISlider UIControl A control for setting discrete values 425 Foundation framework classes ... CSR, download a certificate, and download a provisioning profile From that point, the member can choose to compile onto a device rather than to the iPhone Simulator by changing the pop-up window...
  • 9
  • 382
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 1 docx

Tài liệu Lập trình ứng dụng cho iPhone part 1 docx

Kỹ thuật lập trình

... over wi-fi, but that can be pushed much higher on a good network Multiple streaming rates always choose the optimal method for the current network interface—which brings us to the question of the ... Portrait Mode Figure 1.1 The iPhone supports two dramatically different views, landscape and portrait Choosing between them is not just a question of which is easier to read, but also requires thinking ... we’ll look at more of the differences between web development and the SDK so that you can better choose which of them to use for any individual development project ...
  • 14
  • 389
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 2 doc

Tài liệu Lập trình ứng dụng cho iPhone part 2 doc

Kỹ thuật lập trình

... end-all of iPhone software We feel there are genuinely places where web development is a better choice We’ll argue the reasons that you might select web development over SDK right here, in this ... have to look great You can develop them quickly using the web and then your administrators can choose whether to input data from their iPhones or from their desktops Conversely, you want to provide...
  • 13
  • 424
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 3 pdf

Tài liệu Lập trình ứng dụng cho iPhone part 3 pdf

Kỹ thuật lập trình

... over what it looks like You’ll be able to choose whether to have status-like bars or bottom bars depending on the needs of your program Once you’ve made a choice, you can just pick the right class ... Generally, you shouldn’t have to change these last three values for redeveloped web pages, as a viewer choosing how your page looks is what the web is all about However, if there are good UI reasons ... controlling scalability or if you think a page looks particularly bad at certain scales, you may choose to modify them On the other hand, you probably should turn scaling off for web apps, as those...
  • 24
  • 604
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 4 pdf

Tài liệu Lập trình ứng dụng cho iPhone part 4 pdf

Kỹ thuật lập trình

... 56 CHAPTER Advanced WebKit and textual web apps First, you might choose to build a textual web app, which is an application that is largely built on the fundamentals ... of Apple’s WebKit We’ll be discussing this programming method in this chapter Second, you might choose to build an iPhone-UI web app, which is an application with a user interface that looks like ... where we’ll also cover iUI, a programming library meant to make this task easier Third, you might choose to build a graphical web app, which is an application that pushes the boundaries of web graphics...
  • 25
  • 444
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 6 ppt

Tài liệu Lập trình ứng dụng cho iPhone part 6 ppt

Kỹ thuật lập trình

... overlap lighter Blending choice Where the shapes overlap, the color value is added darker Blending choice Where the shapes overlap, the color value is subtracted xor Blending choice Where the shapes ... other Table 6.8 Value Type Summary source-over Stacking choice New shapes are drawn on top of existing content destination-over Stacking choice New shapes are drawn behind existing content copy ... context.closePath(); if (style == 'fill') { context.fill(); } else { context.stroke(); } } Going back to high school geometry once more (and, to be frank, we had to look it up ourselves), a rhombus is a type...
  • 22
  • 368
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 7 ppt

Tài liệu Lập trình ứng dụng cho iPhone part 7 ppt

Kỹ thuật lập trình

... gauge in just a few minutes in Dashcode Step Description Create a project Select File > New Project Choose a Custom project Create a gauge Drag a gauge from the Parts library to the top center of ... wide) and thus causes an iPhone to zoom in when you move from portrait to landscape mode The other choice, “Adjust page width to fit,” instead sets the viewport to page-width, which means that the ... layout, include a left-rounded push button, a push button, and a right-rounded push button You can choose to put these buttons in one of two places First, you could opt to place them in a header...
  • 19
  • 455
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 8 pdf

Tài liệu Lập trình ứng dụng cho iPhone part 8 pdf

Kỹ thuật lập trình

... preview web pages is quick and simple Step Description Start up your web server From the Apple menu, choose System Preferences Click the Sharing icon Select the Web Sharing checkbox Share files Create ... desktop browser to see how your iPhone web pages really work On the Macintosh you’ve got three great choices—Safari, Firefox, and the iPhone Simulator Each has its own debugging advantages 8.2.1 Using ... Develop menu If the Develop menu doesn’t appear, you can activate it in the Safari preferences: choose the Advanced tab, and check the “Show Develop Debugging with your desktop browser 145 menu...
  • 11
  • 424
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 9 doc

Tài liệu Lập trình ứng dụng cho iPhone part 9 doc

Kỹ thuật lập trình

... lot like whatever language you’re familiar with However, it may vary from your web language of choice in how it deals with some big-picture areas, such as declarations, memory management, file ... C is full of other features that may or may not have turned up in your programming language of choice Among them are symbolic constants (which are permanent declarations, typically used to increase...
  • 10
  • 433
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 10 ppt

Tài liệu Lập trình ứng dụng cho iPhone part 10 ppt

Kỹ thuật lập trình

... the simple methods that you’d expect The setter method is by default of type assign, but you can choose a different method using property attributes, which we’ll talk about down the road USING ... class’s default getter and setter methods, as shown in the following three examples: NSString *choosenType = [AppleTree appleType]; [AppleTree setAppleType:@"Washington Red"]; [AppleTree setAppleType:myAppleType]; ... yourself) The following are the dot syntax equivalents to the messages that we sent earlier: NSString *ChoosenType = AppleTree.appleType; AppleTree.appleType = @"Washington Red"; AppleTree.appleType...
  • 23
  • 472
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 11 pptx

Tài liệu Lập trình ứng dụng cho iPhone part 11 pptx

Kỹ thuật lập trình

... program’s button, which should now appear in your Simulator Or, you can choose Run > Run from within Xcode Finally, you can choose Build and Go in Xcode, which only builds if required, then executes ... in Xcode will quickly create a brand-new object Step Description Create your new file Choose File > New File Choose the class to use as your parent from among the Cocoa Touch Classes options Select ... on the Frameworks folder in your Xcode sidebar and choose Add > Existing Frameworks Xcode will show you a long list of frameworks When you choose one, it’ll automatically be set up as a target...
  • 16
  • 322
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 12 pdf

Tài liệu Lập trình ứng dụng cho iPhone part 12 pdf

Kỹ thuật lập trình

... create new ones You so from within Interface Builder, where you can choose File > New to begin Afterward, you’ll be asked to choose a template: Application, Empty, View, or Window You’ll most ... Simulating in Interface Builder You can’t compile your full program in Interface Builder, but you can choose File > Simulate Interface, which mocks up all your Interface Builder objects, but without ... click the Text Color box Doing so will lead you to a window that offers several ways to set colors Choose the tab that allows selection by name, and you’ll find maraschino cherry on the list You...
  • 15
  • 311
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 13 ppt

Tài liệu Lập trình ứng dụng cho iPhone part 13 ppt

Kỹ thuật lập trình

... Listing 13.1 shows how you could add a simple UILabel to your view controller using viewDidLoad We’ve chosen a humongous font that gets automatically sized down so that later we can show off how rotation ... fundamentals to consider attributes under NIB Name 13.2.4 Using your view controller If you’ve chosen to use a standard view controller, it should be because you’re only managing one page of ... view controller In Xcode, create a new file containing a subclass of UITableViewController ; we’ve chosen RootViewController for our new class name Import your new header into your app delegate In...
  • 19
  • 319
  • 0
Tài liệu Lập trình ứng dụng cho iPhone part 14 docx

Tài liệu Lập trình ứng dụng cho iPhone part 14 docx

Kỹ thuật lập trình

... phase in question and a UIEvent that provides a link to the entire event’s worth of touches You can choose to access either one, as you prefer; as we’ve said, we’re going to be playing with the bare ... can link up actions to methods is to everything inside of Interface Builder This is the preferred choice if you’ve already created your object in Interface Builder (as we’ve suggested) and you’re ... entirely different methodology To use a UISearchBar, set its delegate to be the object of your choice, likely your view controller Then respond to the half-dozen messages that are described in...
  • 24
  • 318
  • 0

Xem thêm