... Developer http://www.manifestinteractive.com/iphone/#_Webdev Listing 8. 1 The code for a show-source bookmarklet 1 48 CHAPTER 8 Debugging iPhone web pages how easy it is to play around with Canvas ... be executed immediately. Figure 8. 3 shows Figure 8. 3 The Firebug console allows you to type in JavaScript functions, making Canvas even simpler. 144 CHAPTER 8 Debugging iPhone web pages The ... http://www.getfirebug.com/ Figure 8. 2 Firefox (left) and Safari (right) both include JavaScript error consoles that you can use to debug Canvas and any other JavaScript work you’re doing. 152 CHAPTER 8 Debugging...
Ngày tải lên: 26/01/2014, 18:20
... 1.5. Khi nào thì nên sử dụng UDP Rất nhiều ứng dụng trên Internet sử dụng UDP. Dựa trên các ưu và nhược điểm của UDP chúng ta có thể kết luận UDP có ích khi: Sử dụng cho các phương thức truyền ... s.toUpperCase(); dp.setData(s.getBytes()); Sưu tầm bởi: www.daihoc.com.vn 171 Chương 7 Lập trình ứng dụng cho giao thức UDP 1. Tổng quan về giao thức UDP TCP/IP là một họ các giao thức được ... thức TCP/IP. Các tầng OSI Họ giao thức TCP TCP/IP Stack 7 Tầng ứng dụng Tầng ứng dụng HTTP FTP SMTP RIP DNS 6 Tầng trình diễn 5 Tầng phiên 4 Tầng giao vận Tầng giao vận TCP UDP 3...
Ngày tải lên: 02/10/2013, 21:20
Lập trình ứng dụng cho iPhone part 15
... convergent evolution. We’ll present a fully functional example of a UIToolBar in chapter 18, section 18. 4. 2 68 C HAPTER 15 Creating advanced view controllers bar item and related view controller ... 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 ... picker (as well as some related controllers that run inside a navigator), and then in chapter 18 you’ll meet the image picker. 15.5 Summary At this point we’ve finished with what we consider...
Ngày tải lên: 18/10/2013, 00:15
Lập trình ứng dụng cho iPhone part 18
... call. Figure 18. 5 depicts most of these concepts graphically. With those definitions in hand, you should be able to parse Apple’s code. Table 18. 7 outlines the necessary steps. Table 18. 7 Steps ... longer sounds, play Listing 18. 8 Vibrating the iPhone requires one line of code Creates sound C Adds callback D Plays sound E Cleans up sound F 350 C HAPTER 18 Media: images and sounds You ... Adds picture to CALayer H Saves collage I Scales image J 3 58 C HAPTER 18 Media: images and sounds return YES; } -(IBAction)chooseFile:(id)sender { myMP = [[MPMoviePlayerController alloc] ...
Ngày tải lên: 24/10/2013, 18:15
Lập trình ứng dụng cho iPhone part 19
... rectangle. Retrieves new context’s pointer C Saves bitmap context to an image D E Closes bitmap context 388 C HAPTER 19 Graphics: Quartz, Core Animation, and OpenGL program after the saving is done F . ... locationInView:self]; Listing 19 .8 Preparing a picture for drawing Listing 19.9 Recording touch events Sets up touches B Displays touches temporarily C Resolves touches D 389 Drawing on a picture: an ... CGTextDrawingMode Defines how to draw text in the graphical state Draws image D Draws on image E Saves image F 382 C HAPTER 19 Graphics: Quartz, Core Animation, and OpenGL Drawing a gradient is a four-step...
Ngày tải lên: 24/10/2013, 18:15
Lập trình ứng dụng cho iPhone part 20
... web. Chapters 3 through 8 offered an exten- sive discussion of building iPhone web apps using HTML , CSS , JavaScript, and the dynamic programming language of your choice. As we said at the ... NSMutableURLRequest body. Once you’ve written this method the first time, you can use it again and again. Listing 20 .8 shows how to turn a dictionary of NSString s into NSData . - (NSData*)createFormData:(NSDictionary*)myDictionary ... [[NSMutableData alloc] initWithCapacity:10]; Listing 20.7 A simple POST ing example Listing 20 .8 Creating form data 397Low-level networking reason, you’ve decided to design an SDK web app,...
Ngày tải lên: 29/10/2013, 01:15
Lập trình ứng dụng cho iPhone part 21
... framework (chapter 17), the Core Audio framework (chapter 18) , the Media Player framework (chapter 18) , the Core Graphics framework (chapters 18 and 19), the Quartz Core framework (chapter 19), the ... mechanism special- ized for searches UISegmentedControl UIControl A control for making one of sev- eral choices UISlider UIControl A control for setting discrete values Table A.1 A listing of the most ... 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...
Ngày tải lên: 29/10/2013, 01:15
Tài liệu Lập trình ứng dụng cho iPhone part 1 docx
... you may note that it has a 480 x320 screen that displays very clearly. This is not a far cry from the 640x 480 video displays common on desktop computers in the late 1 980 s, albeit with more colors ... 20 08 3G release. Each is a 4.7- or 4 .8- ounce computing device. Each contains a 620 MHz ARM CPU that has been underclocked to improve battery perfor- mance and reduce heat. Each includes 1 28 ... bar: 60px bottom bar: 32px visible area: 480 x2 08 Landscape Mode Figure 1.1 The iPhone supports two dramatically different views, landscape and portrait. Choosing between them is not just a question...
Ngày tải lên: 21/01/2014, 23:20
Tài liệu Lập trình ứng dụng cho iPhone part 2 doc
... Web Chapters 3, 8 iPhone optimized Web Chapters 3, 8 iPhone web apps Web Chapters 4–6, 8 Dashcode Web Chapter 7 SDK native apps SDK Chapters 10–19 SDK web apps SDK Chapter 20 28 CHAPTER 2 Web ... end-all of iPhone software. We feel there are genuinely places where web development is a bet- ter choice. We’ll argue the reasons that you might select web development over SDK right here, in ... 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...
Ngày tải lên: 21/01/2014, 23:20
Tài liệu Lập trình ứng dụng cho iPhone part 3 pdf
... control that exactly. Visible area: 320x356 Portrait Mode 980 pixels (scaled) 1090 pixels (scaled) Visible area: 480 x2 08 Landscape Mode 980 pixels (scaled) 425 pixels (scaled) Figure 3.1 The iPhone’s ... possibility that we haven’t seen yet would be to force a browser resize to a 320x 480 screen. Ultimately your choice will depend on what you expect your user base to be—but giving readers more ... even if you are). GRAPHICS ARE TOO SMALL This is a classic viewport problem that arises from 980 -pixel windows being viewed on a 320-pixel screen. The problem could be solved using a viewport,...
Ngày tải lên: 21/01/2014, 23:20
Tài liệu Lập trình ứng dụng cho iPhone part 4 pdf
... turned counterclockwise. –90 Landscape view, turned clockwise. 180 Portrait view, flipped over. Not currently supported. Listing 4 .8 An updating web page that always displays window.orientation B C D 72 ... investigate their Dashcode developmental platform. 68 CHAPTER 4 Advanced WebKit and textual web apps var dataText = "<table width= 280 cellpadding=2>" + "<tr bgcolor='" ... window object that advises you of the iPhone’s current orientation, as described in table 4.11. Listing 4 .8 shows how simple it is to detect an orientation change and take an action based on it. <head> <meta...
Ngày tải lên: 21/01/2014, 23:20
Tài liệu Lập trình ứng dụng cho iPhone part 5 pptx
... title="Maroon"> <li><font color=" #80 0000"><b>Maroon ( #80 0000)</b></font> </ul> Listing 5.6 A search page fragment 88 CHAPTER 5 Using iUI for web apps The ... color="#DC143C"><b>Crimson (#DC143C)</b></font> <li><font color=" #80 0000"><b>Maroon ( #80 0000)</b></font> </ul> We could easily extend this example ... class="group">Entered <? echo $recent[$i][entrydate]; ?> <? } $lastdate = $recent[$i][entrydate]; ?> <li> <a href="display-entry.phtml?mainid=<? echo $recent[$i][mainid];...
Ngày tải lên: 21/01/2014, 23:20
Tài liệu Lập trình ứng dụng cho iPhone part 6 ppt
... it: context.beginPath(); context.arc(150,150,2,0,360*Math.PI/ 180 ,true); context.fill(); context.beginPath(); context.arc(150,150,20,0,90*Math.PI/ 180 ,true); context.moveTo( 185 ,150); context.arc(150,150,35,0,90*Math.PI/ 180 ,false); context.stroke(); The ... 150,170 while the second runs from 185 ,150 to 150, 185 . If not for the moveTo in between them, a straight line would have been drawn from 150,170 to 185 ,150 as part of the path that you’re ... 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...
Ngày tải lên: 26/01/2014, 18:20
Tài liệu Lập trình ứng dụng cho iPhone part 7 ppt
... a few minutes in Dashcode. Step Description 1. Create a project. Select File > New Project. Choose a Custom project. 2. Create a gauge. Drag a gauge from the Parts library to the top center ... among the applications that have been built using Dashcode. Apple released Dashcode 2.0 in 20 08 as part of the large set of development tools for use with the iPhone. Under this new version ... overlap the topics we’ve already discussed, and all of which are included in the next chapter. 1 28 CHAPTER 7 Building web apps with Dashcode whether you’re using absolute or document-flow positioning...
Ngày tải lên: 26/01/2014, 18:20
Tài liệu Lập trình ứng dụng cho iPhone part 9 doc
... Programming Language, Second Edition, by Brian W. Kernighan and Dennis M. Ritchie (Prentice Hall, 1 988 ). Instead,our goal is Table 9.1 The rigorous style of C requires you to think about a few new ... 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 ... programming languages ■ Object-oriented programming languages ■ The MVC architectural pattern 1 58 CHAPTER 9 SDK programming for web developers 9.1.3 File structure and directives When you look...
Ngày tải lên: 26/01/2014, 18:20
Bạn có muốn tìm thêm với từ khóa: