Lập trình ứng dụng cho iPhone part 15
... tools. (See chapter 14. ) ■ Advanced view controllers provide you with a variety of ways to navigate among pages. (See chapter 15.) Although we’ve completed our introduction to the iPhone SDK , we’re ... UINavigationController UIViewControllerUIViewController UINavigationBar UINavigationItemUINavigationItem UIBarButtonItemUIBarButtonItem (optional) (optional) Figure 15 .4 The navigation controller will contain at least four objects, and may be built into a complex web of interconnections. 2 74 C HAPTER 15 Creating advanced ... runtime. At setup you can choose to create a navigational hierarchy and push a user into it before he or she takes any actions. You can see this in action in vari- ous iPhone programs. Mail always...
Ngày tải lên: 18/10/2013, 00:15
Lập trình ứng dụng cho iPhone part 18
... { newY = 0; } else if (newY > 41 6) { newY = 41 6; } self.center = CGPointMake(newX,newY); } This is similar to the touch code that you wrote in chapter 14, and it isn’t worthy of a lot ... on an iPhone (but not in the iPhone Sim- ulator) the result could sometimes be out of bounds, so you need to double-check your coordinates before you move the temporary image view. 18 .4. 3 The ... action:@selector(finishPic:)]] animated:YES]; mySlider = [[UISlider alloc] initWithFrame:CGRectMake(90 ,41 5,210 ,44 )]; mySlider.value = .5; [mySlider addTarget:self action:@selector(rescalePic:) forControlEvents:UIControlEventValueChanged]; ...
Ngày tải lên: 24/10/2013, 18:15
Lập trình ứng dụng cho iPhone part 19
... information you’ll need to access Open GL through the iPhone OS . The iPhone manages Open GL through EAGL , a class that interfaces between the iPhone s views and Open GL ’s drawing functions. ... how it’s integrated into the iPhone. 19.9 Summary Graphics are one of the most important elements for making your iPhone projects look great. Not only does the iPhone OS support high-quality ... center to the edge of a circle). 4 Free up your memory. Listing 19 .4 shows all the steps required to draw a three-color linear gradient that spans the entire iPhone screen. CGColorSpaceRef myColorSpace...
Ngày tải lên: 24/10/2013, 18:15
Lập trình ứng dụng cho iPhone part 20
... Loca- tion internet examples. 20 .4. 4 Google Maps: a Core Location example Google Maps should be an ideal way to show off Core Location, because it’s already built into the iPhone and because it can ... feedback didStartElement: Reports feedback Continue program Figure 20 .4 Complex SDK programs can chain multiple classes. Prepares XML B Watches for gtopo30 C Saves altitude D 41 4 C HAPTER 20 The web: web views and internet ... resources. 40 2 C HAPTER 20 The web: web views and internet protocols 20 .4. 1 Calling up the web view There are two main ways to fill a web view once you’ve created it, as listed in table 20 .4. Most...
Ngày tải lên: 29/10/2013, 01:15
Lập trình ứng dụng cho iPhone part 21
... some iPhone discussion iPhone Atlas http://www.iphoneatlas.com iPhone news blog iPhone Dev Forums http://www.iphonedevforums.com Forums for SDK or web discussion iPhone in Action http://iphoneinaction.manning.com/ ... and iPhone discussion Furbo.org http://furbo.org/ General blog that’s mostly iPhone discussion iDevKit http://idevkit.com/ Forums and news iPhone Dev SDK http://www.iphonedevsdk.com/ Forums iPhone ... Forums iPhone Development http://iphonedevelopment. blogspot.com/ Blog with extensive original content iPhone Development Central http://www.iphonedevcen- tral.org/ Online iPhone tutorials Lap Cat Software...
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
... elements in the story of what makes the iPhone unique. 1 .4. 1 Output and iPhone viewport When using the iPhone for most purposes, you may note that it has a 48 0x320 screen that displays very clearly. ... the iPhone output, but its input may be even more innovative. 1 .4. 3 Input and iPhone mousing As already noted, the iPhone uses a multi-touch-capable capacitive touch screen. Users access the iPhone ... Apple’s iPhone technology ■ Examining the iPhone s specifications ■ Highlighting what makes the iPhone unique 11How the iPhone is unique users. Google has also shown a notable uptick among iPhone...
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
... the iPhone. Method Type References iPhone incompatible Web Brief mentions only iPhone compatible Web Brief mentions only iPhone friendly Web Chapters 3, 8 iPhone optimized Web Chapters 3, 8 iPhone ... development models iPhone web apps represent a transition for iPhone developers. When you’re engaging in simpler types of iPhone development—making existing web sites iPhone friendly or iPhone optimized—you’re ... book. 2 .4 Stand-alone iPhone development The topic of iPhone development isn’t just as simple as web versus SDK. We’ve divided those topics further by highlighting six ways you can develop iPhone...
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
... experience for iPhone users through a page that has been redisplayed to the point where it’s become an iPhone web app. 44 CHAPTER 3 Redeveloping web pages for the iPhone from an iPhone. The easiest ... button 320x60 or 48 0x60 Bottom bar Displays web page navigation functions: back and forward, book- mark buttons, and tab navigator 320x 44 or 48 0x32 Table 3.7 To make a web page viewable on an iPhone screen, ... nice. Making a page iPhone friendly is more about fixing problems than about showing off the iPhone s strengths. 3.2.1 Avoiding missing iPhone functionality Although the iPhone is often described...
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
... the iPhone. Table 4. 2 This partial list shows the numerous simple new CSS elements that can be incorporated into your iPhone designs. (continued) HTML element CSS properties Summary Figure 4. 1 ... will work on the iPhone. 4. 1.1 New HTML elements The WebKit introduces several new HTML elements. We’ve listed the ones most likely to be useful for iPhone design in table 4. 1. There are also ... element that you can make use of on the iPhone, but it can also be used more broadly. The last couple of items that we’ll discuss are instead iPhone specific. 4. 4 Adjusting the chrome In the previous...
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
... in chapter 4, when looking at the WebKit. ■ Input was also covered in chapter 4. If you want, you can continue to use the WebKit’s orientation and gesture support as part of your iPhone- UI ... mimicking the look and feel of the iPhone s UI, but also its functionality. The discussions that lead off the chapter, centering on the iPhone UI and the iPhone s architectural paradigms, provide ... (Manning, 2008). The iPhone extension adds a few common iPhone- related manipulations to jQuery. You can access them just by including the appropriate JavaScript scripts (jquery .iphone. js, jquery.js)...
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
... context.beginPath(); context.moveTo(20,200); context.quadraticCurveTo(20,20,200,20) context.moveTo (40 ,300); context.bezierCurveTo(180,270,150, 240 ,300 ,40 ); context.stroke(); Figure 6 .4 shows what the output of listing 6.3 looks like. To the left, we have it as it appears on the iPhone ... corrected for on the iPhone) . But there’s enough in common that if you learn Canvas, you’ll have a big leg-up on Quartz, and vice versa. 1 14 CHAPTER 6 Using Canvas for web apps 6 .4. 3 Line styles Before ... for attractive coloring. 1 04 CHAPTER 6 Using Canvas for web apps But Canvas applies to much more than just web apps. You could use Canvas on your iPhone- friendly and iPhone- optimized pages too....
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
... Dashcode 7.2.1 Using library parts In chapter 4, we used the WebKit to create a simple web program that reported the orientation of a user’s iPhone. At the time, we opted to display the information ... top of your iPhone. Table 7.2 We can create a graphical orientation gauge in just a few minutes in Dashcode. Step Description 1. Create a project. Select File > New Project. Choose a Custom ... use with the iPhone. Under this new version of Dashcode, you can create web applications intended to run not on a Macintosh but, instead, on an external website for use with an iPhone. Dashcode...
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 8 pdf
... sourceWindow.document; Table 8 .4 Publicly available programs can make debugging on the iPhone easier. Program Location iPhone Debug http://code.google.com/p/iphonedebug/ iPhone Web Developer http://www.manifestinteractive.com /iphone/ #_Webdev Listing ... tool, Firebug on the iPhone, because it stopped working when iPhone OS 2.0 was released, with no indication that it’s going to be repaired in the future. 146 CHAPTER 8 Debugging iPhone web pages 8.2.2 ... programs from gobbling up an iPhone s battery, but you’re going to need to do your part too. 150 CHAPTER 8 Debugging iPhone web pages 8.3.1 Using iPhone Debug Jon Brisbin’s iPhone Debug is a JavaScript...
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
... development isn’t the be-all and end-all of iPhone programming. There are some programs that will just be better suited for native programming on the iPhone. Apple provides a development platform ... work themselves. 9 .4 Summary We think it’s entirely possible for someone without object-oriented experience (and even without C experience) to make the transition from creating iPhone- based web ... make the transition from creating iPhone- based web pages to creating iPhone- based native apps. We’ve already seen it happen at iPhone development camps. We also think there are good reasons for...
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 10 ppt
... moving your iPhone programs from the iPhone Simulator onto a real iPhone. For now, though, we’ll assume that you’re using the iPhone Simulator, and will warn you when you can’t. The iPhone Simulator ... accordingly. Again, we’ll discuss this topic in chapter 14. 10 .4. 4 Life-cycle management By now you know how to create objects using the iPhone OS and how to release their memory when you’re done ... it all means. 186 CHAPTER 10 Learning Objective-C and the iPhone OS 10 .4. 2 Memory management Because of power considerations, the iPhone OS doesn’t support garbage collection. That means that...
Ngày tải lên: 26/01/2014, 18:20