Lập trình iphone chuyên nghiệp part 1
... Word, Excel documents 30MB and up (very slow) JavaScript stack and object allocation 10MB JavaScript execution limit 5 seconds for each top-level entry point ( catch is called after 5 seconds ... accept cookies. A user can also manually clear the history, cookies, and cache from this screen. c0 1.indd 2c0 1.indd 2 12/7/07 2:29:06 PM12/7/07 2:29:06 PM Chapter 1: The iPhone and iPod touch ... and iPod touch do not allow you to access the local file system, you cannot place your application directly onto the device itself. As a result, you need to access your Web application through...
Ngày tải lên: 29/10/2013, 01:15
Lập trình iphone chuyên nghiệp part 2
... iPhone Applications Aggregators Task-based Widgets Mail Safari Stocks SMS Phone Weather Photos Camera Clock YouTube Calendar Calculator Notes Maps Contacts (Address Book) iPod While the document ... have such a concept, it is up to the application developer to implement such consistency. c0 2.indd 1 3c0 2.indd 13 12/7/07 2:40:06 PM12/7/07 2:40:06 PM Chapter 2: Designing a User Interface 21 Figure ... library. Figure 2-9: iCal puts its calendar views up on top. Table 2-3: Application Modes and UI Access Application Modes UI controls iCal List, Day, Month Top toolbar Phone Favorites, Recents, Contacts, Keypad,...
Ngày tải lên: 08/11/2013, 00:15
Lập trình iphone chuyên nghiệp part 3
... the application, but is used on subsequent pages to go back to the previous page. The Search button allows access to the search form anywhere within the application. Here are the corresponding ... interface, I will walk you through a case study application I am calling iRealtor. The concept of iRealtor is to provide a mobile house - hunter application for potential buyers. The current ... is typically either a div or a ul list: body > *[selected=”true”] { display: block; } Links also are assigned the selected attribute: a[selected], a:active { background-color:...
Ngày tải lên: 08/11/2013, 00:15
Lập trình iphone chuyên nghiệp part 4
... media=”screen” > @import “irealtor.css”; < /style > < script type=”application/x-javascript” > < /script > < script type=”application/x-javascript” > function calc() ... application — Search and the Mortgage Calculator. The Search dialog is accessed by tapping the Search button on the top toolbar. Here ’ s the calling link: < a class=”button” href=”#searchForm” ... and then call the JavaScript function calc() , which then displays the results in the bottom two input fields. Because the calculation is performed inside of a client - side JavaScript, no...
Ngày tải lên: 08/11/2013, 00:15
Tài liệu Lập trình iphone chuyên nghiệp part 5 doc
... nodes[i]; if (child.nodeType == 1) { if (!child.id) child.id = “__” + (++newPageCount) + “__”; var clone = $(child.id); if (clone) clone.parentNode.replaceChild(child, clone); else document.body.appendChild(child); ... var child = nodes[i]; if (child.nodeType == 1) { if (!child.id) child.id = “__” + (++newPageCount) + “__”; var clone = $(child.id); if (clone) clone.parentNode.replaceChild(child, clone); ... setTimeout(checkOrientAndLocation, 0); checkTimer = setInterval(checkOrientAndLocation, 300); }, false); The getSelectedPage() method of the JSON object iui is called to get the selected page...
Ngày tải lên: 15/12/2013, 11:15
Tài liệu Lập trình iphone chuyên nghiệp part 6 docx
... selector .class Class selector #id ID selector * Universal selector (all elements) E F Descendant selector E > F Child selector E + F Adjacent sibling selector E ~ F Indirect adjacent selector a E[attr] attr ... state a E:disabled Disabled state a E:checked Checked state a a New to CSS3 b When new first child/child of type is created programmatically using JavaScript, the previous maintains the :first-child or :first-of-type ... link E:lang([Code]) Selector content uses the language code specified E:before Content before an element E::before Content before an element (new double-colon notation in CSS3) a E:after Content...
Ngày tải lên: 15/12/2013, 11:15
Tài liệu Lập trình iphone chuyên nghiệp part 7 pdf
... with CSS 90 Styling Block Elements There are several styles that you can apply to block elements to transform their appearance that go beyond the typical CSS2 styles. These include three so-called ... important role in creating CSS-based iPhone buttons, which is explained later in this chapter. c0 4.indd 9 0c0 4.indd 90 12/7/07 2:45:26 PM12/7/07 2:45:26 PM Chapter 4: Styling with CSS 94 You define ... the first, and so on. You can also specify the background-repeat and background-position values for each of the images. If background-color is defined, then this color is painted below all...
Ngày tải lên: 15/12/2013, 11:15
Tài liệu Lập trình iphone chuyên nghiệp part 8 doc
... “Portrait”; break; case -90: str += “Landscape (right, screen turned clockwise)”; break; case 90: str += “Landscape (left, screen turned counterclockwise)”; break; case 180: str += ... primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis laoreet lorem quis nulla. Curabitur enim erat, gravida ac, posuere sed, nonummy in, tortor. Donec id orci id lectus convallis ... orientationChange() function evaluates the window.orientation property to determine the current state: 0 (Portrait), -90 (Landscape, clockwise), 90 (Landscape counterclockwise), or...
Ngày tải lên: 15/12/2013, 11:15
Tài liệu Lập trình iphone chuyên nghiệp part 9 doc
... variable, which is then passed onto the scrollBall() function. The scrollBall() function is used to manipulate the vertical position of the ball: var currentTop = 1; var INC = 8 function scrollBall(delta) ... { currentTop = document.getElementById(‘blueDot’).offsetTop; if (delta < 0) currentTop = currentTop-INC; else if (delta > 0) currentTop = currentTop+INC; if (currentTop > 390) currentTop ... performing a one-finger scroll and begins to scroll the entire page. ❑ There is no way to effectively program a flicking action in association with a two-finger scroll to accelerate the rate of...
Ngày tải lên: 15/12/2013, 11:15
Tài liệu Lập trình iphone chuyên nghiệp part 10 doc
... context.fillRect(15,15,140,130); context.clearRect(30,30,30,30); context.clearRect(70,30,30,30); context.clearRect(110,30,30,30); context.clearRect(30,100,30,30); context.clearRect(70,100,30,30); context.clearRect(110,100,30,30); } ... arc() , I can create a filled circle inside of an empty circle using the following code: function drawCircles(){ var canvas = document.getElementById(‘myCanvas’); var context = canvas.getContext(‘2d’); ... var context = canvas.getContext(‘2d’); context.strokeRect(10,10,150,140); context.fillRect(15,15,140,130); context.clearRect(30,30,30,30); context.clearRect(70,30,30,30); context.clearRect(110,30,30,30); ...
Ngày tải lên: 15/12/2013, 11:15