¡@

Home 

2014/10/15 ¤U¤È 10:03:34

iphone Programming Glossary: all

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

to programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from.. programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from the iPhone with the official SDK Cocoa Touch iphone ios cocoa touch sms share improve.. on the iPhone you'll be able to write games that spam people in the background. I'm sure you really want to have spams from your friends Try out this new game It roxxers my boxxers and yours will be..

How to add a breakpoint to objc_exception_throw?

http://stackoverflow.com/questions/1163981/how-to-add-a-breakpoint-to-objc-exception-throw

exceptions. To do this go to Run Show Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw.. Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw and its location should be libobjc.A.dylib..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will require you to check the screen size every time you have to draw something like.. iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically.. stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely..

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

should I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen.. ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing.. access to it. Edit As iOS 6 is now out check the new AutoLayout capabilities. That said if you really need to detect the iPhone 5 you can simply rely on the screen size . UIScreen mainScreen bounds .size.height..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

working through this problem and ultimately decided to take a different approach. I replaced the call to show the action sheet with a modal view controller containing a simple tableview. There are many.. in a current project. It's nice because I can reuse it between 5 or 6 different screens where I all users to select from a list of options. Create a new UITableViewController subclass SimpleTableViewController.. SimpleTableViewControllerDelegate with a required method itemSelectedatRow and a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back..

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried..

Cropping a UIImage

http://stackoverflow.com/questions/158914/cropping-a-uiimage

so I can get a scaled chunk of the center of the image I use this to take a UIImage and return a small square representation of an image similar to what's seen in the album view of the Photos app. I know.. am I instead attempting to draw over other memory that I shouldn't be touching Theory 2 I'm doing all of this in a background thread. I know there are portions of UIKit that are restricted to the main thread...

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

One word Don't. OK obviously that isn't a real answer. But still SOAP should be avoided at all costs. Is it possible to add a proxy server between the iPhone and the web service Perhaps something..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

Does anyonew know if this is possible I've investigated using CALayer and have run through all the pragmatic programmer Core Animation podcasts but I'm still no clearer on how to create this kind.. create this kind of transform on an iPhone. Any help pointers or example code snippets would be really appreciated iphone ios cocoa touch core animation share improve this question As Ben said you'll..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

fat static library device simulator using Xcode and SDK 4 It appears that we can theoretically build a single static library that includes both simulator and iPhone and iPad. However Apple has no.. question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below Karl's library http stackoverflow.com a 5721978 153422 takes much.. scroll to bottom now supports iPhone5 using Apple's workaround to the bugs in lipo . NOTE the install instructions have changed I can probably simplify this by changing the script in future but don't want..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

these would require me to render each glyph myself which is a bit too much like hard work especially for multi line text. I've also found posts that say straight out that it's not possible but without.. so far which tell me to read the documentation on X or Y. I've experimented extensively with all of these and got nowhere. In one case X turned out to be relevant only on OS X not on iPhone. Consequently.. the bounty auto awards to the answer with the highest number of votes. Interesting. No one actually provided an answer that solved the question as asked the solution that involves coding your own UILabel..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

UIScrollview But the same issues keep cropping up. UIImage Method PDF's in a UIImage don't optically scale as well as a Layer approach. The CPU and memory hit on generating the UIImages from a PDFcontext.. even with a tileSize tweak CALayers cant be prepared ahead of time rendered off screen . Generally PDF viewers are pretty heavy on memory too. Even monitor the memory usage of apple's zoomable PDF example... when they are 2 pages away from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

to feel comfortable with the XPath language. Code Example #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data.. NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser.. @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser searchWithXPathQuery @ table..

How to intercept touches events on a MKMapView or UIWebView objects?

http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects

WildcardGestureRecognizer.h WildcardGestureRecognizer.h Copyright 2010 Floatopian LLC. All rights reserved. #import Foundation Foundation.h typedef void ^TouchesEventBlock NSSet touches UIEvent.. WildcardGestureRecognizer.m Created by Raymond Daly on 10 31 10. Copyright 2010 Floatopian LLC. All rights reserved. #import WildcardGestureRecognizer.h @implementation WildcardGestureRecognizer @synthesize..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

answers say. Does that happen with the iPad iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation...

How disable Copy, Cut, Select, Select All in UITextView

http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview

disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I.. disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I press down on the screen. But in my project the UITextField..

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

received the test notification @end ... somewhere else in another class ... void someMethod All instances of TestClass will be notified NSNotificationCenter defaultCenter postNotificationName @ TestNotification..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

new or updated iPhone only apps. This is direct from Apple's iOS 4 Readiness Checklist reg reqd All new applications and updates to existing applications must be built with iPhone SDK 4. Please note the..

How to customize the background/border colors of a grouped table view cell?

http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colors-of-a-grouped-table-view-cell

CustomCellBackgroundView.h Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import UIKit UIKit.h typedef enum CustomCellBackgroundViewPositionTop CustomCellBackgroundViewPositionMiddle.. CustomCellBackgroundView.m Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import CustomCellBackgroundView.h static void addRoundedRectToPath CGContextRef context..

Want to display a 3D model on the iPhone: how to get started?

http://stackoverflow.com/questions/413919/want-to-display-a-3d-model-on-the-iphone-how-to-get-started

iPhone apparently uses Anything about XCode My main problem is that I don't know where to start All the iPhone books I found seem to be about creating GUI applications not OpenGL apps. I found an OpenGL..

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

there is a search when the search is canceled you can see below that this object is released . All UITableView methods must figure out what table view it will query and which applicable FRC to pull the..

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

the system . This we will abuse later. In my case I used VoIP backgrounding enabled in my plist. All the code here is done in your AppDelegate if the iOS device allows background execution this Handler.. Clear out the old notification before scheduling a new one. if oldNotifications count 0 app cancelAllLocalNotifications Create a new notification UILocalNotification alarm UILocalNotification alloc init.. This will cause your app running as long as the system allows your app to be running. All timers and threads stay running until iOS terminates your app. void applicationDidEnterBackground UIApplication..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

item in the whole database Datafield1 Datafield2 the ObjectId field will reference another table AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along.. in the local data store. Then my cloud server will check against the objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so.. objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so that they can be merged. The device will have to poll the server without..

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

This happens when your build produces more than a single target say an app and a library. All of them end up in the build products folder and Xcode gets naïvely confused about how to package them..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

job is to build classes that can easily be reused reusability and modularity are high priorities. All of the best practices they mention for sharing data are part of dependency injection. That's the gist..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

asking the controller for the C function pointer for the method corresponding to the controller. All objects respond to methodForSelector and it works through some lower level Objective C runtime methods.. but doing so requires a lot more typing and is also slower so there's little reason to do it. 1 All Objective C methods have two hidden arguments self and _cmd that are implicitly added when you call..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

to programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from the iPhone with the official SDK Cocoa Touch iphone ios.. to programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from the iPhone with the official SDK Cocoa Touch iphone ios cocoa touch sms share improve this question Restrictions If you could send an SMS.. Restrictions If you could send an SMS within a program on the iPhone you'll be able to write games that spam people in the background. I'm sure you really want to have spams from your friends Try out this new game It roxxers my boxxers and yours will be too roxxersboxxers.com If you sign up now you'll get 3 200 RB..

How to add a breakpoint to objc_exception_throw?

http://stackoverflow.com/questions/1163981/how-to-add-a-breakpoint-to-objc-exception-throw

If you add two breakpoints you should be able to debug these exceptions. To do this go to Run Show Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw and its location should be libobjc.A.dylib . The second should.. be able to debug these exceptions. To do this go to Run Show Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw and its location should be libobjc.A.dylib . The second should be NSException raise and its location..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

won't work seamlessly between versions as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will require you to check the screen size every time you have to draw something like many answers say. Does that happen with the iPad iphone.. like many answers say. Does that happen with the iPad iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points in height would simply be black. If.. question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely consider using Auto Layout. It removes all fixed layout..

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

an iPhone with 3.5 or 4 screen and then apply the view. How should I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views.. screen and then apply the view. How should I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of iOS so your views can adjust and adapt.. read the API changelog on Apple Developer website if you can access to it. Edit As iOS 6 is now out check the new AutoLayout capabilities. That said if you really need to detect the iPhone 5 you can simply rely on the screen size . UIScreen mainScreen bounds .size.height The iPhone 5's screen has a height of 568. You can..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

invalid context errors in iOS 7. I just spent a few hours working through this problem and ultimately decided to take a different approach. I replaced the call to show the action sheet with a modal view controller containing a simple tableview. There are many ways to accomplish this. Here's one way that I just implemented.. to accomplish this. Here's one way that I just implemented in a current project. It's nice because I can reuse it between 5 or 6 different screens where I all users to select from a list of options. Create a new UITableViewController subclass SimpleTableViewController . Create a UITableViewController in your storyboard.. table. Also in SimpleTableViewController.h create a protocol SimpleTableViewControllerDelegate with a required method itemSelectedatRow and a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back to the parent controller. In SimpleTableViewController.m implement..

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

from iTunes Connect. I have the application binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking symbolicatecrash crashreport.crash myApp.app.dSYM..

Cropping a UIImage

http://stackoverflow.com/questions/158914/cropping-a-uiimage

a UIImage I've got some code that resizes an image so I can get a scaled chunk of the center of the image I use this to take a UIImage and return a small square representation of an image similar to what's seen in the album view of the Photos app. I know I could use a UIImageView and adjust the crop mode to achieve.. bounds of my image context. I was hoping this was Kosher but am I instead attempting to draw over other memory that I shouldn't be touching Theory 2 I'm doing all of this in a background thread. I know there are portions of UIKit that are restricted to the main thread. I was assuming hoping that drawing to an offscreen view..

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

iphone ios web services soap wsdl share improve this question One word Don't. OK obviously that isn't a real answer. But still SOAP should be avoided at all costs. Is it possible to add a proxy server between the iPhone and the web service Perhaps something that converts REST into SOAP for you You could try CSOAP a..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

a perspective transform on a UIView such as seen in coverflow Does anyonew know if this is possible I've investigated using CALayer and have run through all the pragmatic programmer Core Animation podcasts but I'm still no clearer on how to create this kind of transform on an iPhone. Any help pointers or example code.. Core Animation podcasts but I'm still no clearer on how to create this kind of transform on an iPhone. Any help pointers or example code snippets would be really appreciated iphone ios cocoa touch core animation share improve this question As Ben said you'll need to work with the UIView's layer using a CATransform3D..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

fat static library device simulator using Xcode and SDK 4 It appears that we can theoretically build a single static library that includes both simulator and iPhone and iPad. However Apple has no documentation on this that I can find and Xcode's default.. problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below Karl's library http stackoverflow.com a 5721978 153422 takes much more effort to setup but much nicer long term solution it converts.. PNG files PLIST files etc from your library see below scroll to bottom now supports iPhone5 using Apple's workaround to the bugs in lipo . NOTE the install instructions have changed I can probably simplify this by changing the script in future but don't want to risk it now copy headers section now respects the build..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

8304744 http forums.macrumors.com showthread.php t 569311 but these would require me to render each glyph myself which is a bit too much like hard work especially for multi line text. I've also found posts that say straight out that it's not possible but without justification so I'm looking for a definitive answer. EDIT.. name was Harrowprint. EDIT there have been a number of replies so far which tell me to read the documentation on X or Y. I've experimented extensively with all of these and got nowhere. In one case X turned out to be relevant only on OS X not on iPhone. Consequently I am setting a bounty for this question and I will award.. on the simulator too would be a bonus. EDIT it appears that the bounty auto awards to the answer with the highest number of votes. Interesting. No one actually provided an answer that solved the question as asked the solution that involves coding your own UILabel subclass doesn't support word wrap which is an essential..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

have sample code to show how draw a large PDF in a Zoomable UIScrollview But the same issues keep cropping up. UIImage Method PDF's in a UIImage don't optically scale as well as a Layer approach. The CPU and memory hit on generating the UIImages from a PDFcontext limits prevents using it to create a real time render of.. PDF page to a CALayer individual tiles can be seen rendering even with a tileSize tweak CALayers cant be prepared ahead of time rendered off screen . Generally PDF viewers are pretty heavy on memory too. Even monitor the memory usage of apple's zoomable PDF example. In my current project I'm developing a PDF viewer and.. the layer before it starts drawing.Pages are destroyed again when they are 2 pages away from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed here EDIT Some Tips Credit Luke Mcneice VdesmedT Matt Gallagher..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

XPathQuery.m Take a walk on w3school XPath Tutorial to feel comfortable with the XPath language. Code Example #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray.. with the XPath language. Code Example #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser searchWithXPathQuery @ table 3 tr 2 td Access the first cell.. Example #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser searchWithXPathQuery @ table 3 tr 2 td Access the first cell TFHppleElement element elements..

How to intercept touches events on a MKMapView or UIWebView objects?

http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects

NO mapView addGestureRecognizer tapInterceptor WildcardGestureRecognizer.h WildcardGestureRecognizer.h Copyright 2010 Floatopian LLC. All rights reserved. #import Foundation Foundation.h typedef void ^TouchesEventBlock NSSet touches UIEvent event @interface WildcardGestureRecognizer UIGestureRecognizer.. touchesBeganCallback @end WildcardGestureRecognizer.m WildcardGestureRecognizer.m Created by Raymond Daly on 10 31 10. Copyright 2010 Floatopian LLC. All rights reserved. #import WildcardGestureRecognizer.h @implementation WildcardGestureRecognizer @synthesize touchesBeganCallback id init if self super init self.cancelsTouchesInView..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

screen size every time you have to draw something like many answers say. Does that happen with the iPad iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88..

How disable Copy, Cut, Select, Select All in UITextView

http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview

disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I press down on the screen. But in my project the UITextField.. disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I press down on the screen. But in my project the UITextField is only read only. I do not require this functionality. Please..

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

deal 4.0 is now the only SDK version allowed for submitting new or updated iPhone only apps. This is direct from Apple's iOS 4 Readiness Checklist reg reqd All new applications and updates to existing applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target..

How to customize the background/border colors of a grouped table view cell?

http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colors-of-a-grouped-table-view-cell

to fix it. Still this will probably be very helpful for you CustomCellBackgroundView.h Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import UIKit UIKit.h typedef enum CustomCellBackgroundViewPositionTop CustomCellBackgroundViewPositionMiddle CustomCellBackgroundViewPositionBottom.. nonatomic CustomCellBackgroundViewPosition position @end CustomCellBackgroundView.m Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import CustomCellBackgroundView.h static void addRoundedRectToPath CGContextRef context CGRect rect float ovalWidth float ovalHeight @implementation..

Want to display a 3D model on the iPhone: how to get started?

http://stackoverflow.com/questions/413919/want-to-display-a-3d-model-on-the-iphone-how-to-get-started

about Objective C Anything about OpenGL or OpenGL ES which the iPhone apparently uses Anything about XCode My main problem is that I don't know where to start All the iPhone books I found seem to be about creating GUI applications not OpenGL apps. I found an OpenGL book but I don't know how much if any applies to iPhone development...

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

The searchFetchedResultsController should not be used unless there is a search when the search is canceled you can see below that this object is released . All UITableView methods must figure out what table view it will query and which applicable FRC to pull the information from. The FRC delegate methods must also figure..

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

be launched by iOS in background again once it was quit by the system . This we will abuse later. In my case I used VoIP backgrounding enabled in my plist. All the code here is done in your AppDelegate if the iOS device allows background execution this Handler will be called void backgroundHandler NSLog @ ### VOIP backgrounding.. NSArray oldNotifications app scheduledLocalNotifications Clear out the old notification before scheduling a new one. if oldNotifications count 0 app cancelAllLocalNotifications Create a new notification UILocalNotification alarm UILocalNotification alloc init autorelease if alarm alarm.fireDate NSDate date alarm.timeZone.. code below you can see that i have a comment at the expirationHandler. This will cause your app running as long as the system allows your app to be running. All timers and threads stay running until iOS terminates your app. void applicationDidEnterBackground UIApplication application UIApplication app UIApplication sharedApplication..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

record DatabaseId unique to this table ObjectId unique to the item in the whole database Datafield1 Datafield2 the ObjectId field will reference another table AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along the device Id and the objectId from the core data object.. the device Id and the objectId from the core data object in the local data store. Then my cloud server will check against the objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so that they can be merged. The device will have to poll the.. data store. Then my cloud server will check against the objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so that they can be merged. The device will have to poll the server without using up too much battery. The local devices will also..

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

. Chances are the iOS App Store Package .ipa option may be disabled. This happens when your build produces more than a single target say an app and a library. All of them end up in the build products folder and Xcode gets naïvely confused about how to package them both into an .ipa file so it merely disables the option. A..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

presenters are coming from i.e. as Apple employees their job is to build classes that can easily be reused reusability and modularity are high priorities. All of the best practices they mention for sharing data are part of dependency injection. That's the gist of my response. I'll include an example of using the dependency..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

selector Explanation What's going on here is you're asking the controller for the C function pointer for the method corresponding to the controller. All objects respond to methodForSelector and it works through some lower level Objective C runtime methods so you could do this directly with the runtime API as well.. to build up an NSMethodInvocation to handle this as well but doing so requires a lot more typing and is also slower so there's little reason to do it. 1 All Objective C methods have two hidden arguments self and _cmd that are implicitly added when you call a method. 2 Actually it's possible for it to get the wrong info..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

to programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from the iPhone with.. to programmatically send SMS on the iPhone Does anybody know if it's possible and how to programmatically send a SMS from the iPhone with the official SDK Cocoa Touch iphone ios cocoa touch sms share improve this question.. an SMS within a program on the iPhone you'll be able to write games that spam people in the background. I'm sure you really want to have spams from your friends Try out this new game It roxxers my boxxers and yours will be too roxxersboxxers.com..

How to add a breakpoint to objc_exception_throw?

http://stackoverflow.com/questions/1163981/how-to-add-a-breakpoint-to-objc-exception-throw

able to debug these exceptions. To do this go to Run Show Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw and its location should.. do this go to Run Show Breakpoints and create two global breakpoints I do them globally because they are so useful in all my applications . The first should be named objc_exception_throw and its location should be libobjc.A.dylib . The second..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

as it happened when we got the Retina . And will we have to design two storyboards just like for the iPad I personally don't think Apple will require you to check the screen size every time you have to draw something like many answers say... happen with the iPad iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points.. in the vertically stretched screen from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely consider using Auto..

How to detect iPhone 5 (widescreen devices)?

http://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices

apply the view. How should I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto.. I do that iphone ios objective c screen device share improve this question First of all you shouldn't rebuild all your views to fit a new screen nor use different views for different screen sizes. Use the auto resizing capabilities of.. website if you can access to it. Edit As iOS 6 is now out check the new AutoLayout capabilities. That said if you really need to detect the iPhone 5 you can simply rely on the screen size . UIScreen mainScreen bounds .size.height The iPhone..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

spent a few hours working through this problem and ultimately decided to take a different approach. I replaced the call to show the action sheet with a modal view controller containing a simple tableview. There are many ways to accomplish this... I just implemented in a current project. It's nice because I can reuse it between 5 or 6 different screens where I all users to select from a list of options. Create a new UITableViewController subclass SimpleTableViewController . Create a.. create a protocol SimpleTableViewControllerDelegate with a required method itemSelectedatRow and a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back to the parent controller...

Symbolicating iPhone App Crash Reports

http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

binary that I submitted to the App Store and I have the dSYM file that was generated as part of the build. I have all of these files together inside a single directory that is indexed by spotlight. What now I have tried invoking symbolicatecrash..

Cropping a UIImage

http://stackoverflow.com/questions/158914/cropping-a-uiimage

resizes an image so I can get a scaled chunk of the center of the image I use this to take a UIImage and return a small square representation of an image similar to what's seen in the album view of the Photos app. I know I could use a UIImageView.. this was Kosher but am I instead attempting to draw over other memory that I shouldn't be touching Theory 2 I'm doing all of this in a background thread. I know there are portions of UIKit that are restricted to the main thread. I was assuming..

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

improve this question One word Don't. OK obviously that isn't a real answer. But still SOAP should be avoided at all costs. Is it possible to add a proxy server between the iPhone and the web service Perhaps something that converts REST..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

such as seen in coverflow Does anyonew know if this is possible I've investigated using CALayer and have run through all the pragmatic programmer Core Animation podcasts but I'm still no clearer on how to create this kind of transform on an.. no clearer on how to create this kind of transform on an iPhone. Any help pointers or example code snippets would be really appreciated iphone ios cocoa touch core animation share improve this question As Ben said you'll need to work with..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

fat static library device simulator using Xcode and SDK 4 It appears that we can theoretically build a single static library that includes both simulator and iPhone and iPad. However Apple has no documentation on this.. share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install instructions may change see below Karl's library http stackoverflow.com a 5721978 153422 takes much more effort to setup.. library see below scroll to bottom now supports iPhone5 using Apple's workaround to the bugs in lipo . NOTE the install instructions have changed I can probably simplify this by changing the script in future but don't want to risk it now copy..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

t 569311 but these would require me to render each glyph myself which is a bit too much like hard work especially for multi line text. I've also found posts that say straight out that it's not possible but without justification so I'm.. been a number of replies so far which tell me to read the documentation on X or Y. I've experimented extensively with all of these and got nowhere. In one case X turned out to be relevant only on OS X not on iPhone. Consequently I am setting.. EDIT it appears that the bounty auto awards to the answer with the highest number of votes. Interesting. No one actually provided an answer that solved the question as asked the solution that involves coding your own UILabel subclass doesn't..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

PDF in a Zoomable UIScrollview But the same issues keep cropping up. UIImage Method PDF's in a UIImage don't optically scale as well as a Layer approach. The CPU and memory hit on generating the UIImages from a PDFcontext limits prevents.. can be seen rendering even with a tileSize tweak CALayers cant be prepared ahead of time rendered off screen . Generally PDF viewers are pretty heavy on memory too. Even monitor the memory usage of apple's zoomable PDF example. In my current.. are destroyed again when they are 2 pages away from the focused page. Does anyone have any insights no matter how small or obvious to improve the performance memory handling of Drawing PDF's or any other issues discussed here EDIT Some Tips..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

w3school XPath Tutorial to feel comfortable with the XPath language. Code Example #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells.. #import TFHpple.h NSData data NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser searchWithXPathQuery.. NSData alloc initWithContentsOfFile @ example.html Create parser xpathParser TFHpple alloc initWithHTMLData data Get all the cells of the 2nd row of the 3rd table NSArray elements xpathParser searchWithXPathQuery @ table 3 tr 2 td Access the..

How to intercept touches events on a MKMapView or UIWebView objects?

http://stackoverflow.com/questions/1049889/how-to-intercept-touches-events-on-a-mkmapview-or-uiwebview-objects

tapInterceptor WildcardGestureRecognizer.h WildcardGestureRecognizer.h Copyright 2010 Floatopian LLC. All rights reserved. #import Foundation Foundation.h typedef void ^TouchesEventBlock NSSet touches UIEvent event @interface.. WildcardGestureRecognizer.m Created by Raymond Daly on 10 31 10. Copyright 2010 Floatopian LLC. All rights reserved. #import WildcardGestureRecognizer.h @implementation WildcardGestureRecognizer @synthesize touchesBeganCallback..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

something like many answers say. Does that happen with the iPad iphone ios iphone 5 share improve this question All apps will continue to work in the vertically stretched screen from what I could tell in today's presentation. They will..

How disable Copy, Cut, Select, Select All in UITextView

http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview

disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I press down on the screen... disable Copy Cut Select Select All in UITextView The UITextView's Copy Cut Select Select All functionality is shown by default when I press down on the screen. But in my project the UITextField is only read only...

Send and receive messages through NSNotificationCenter in Objective-C? [closed]

http://stackoverflow.com/questions/2191594/send-and-receive-messages-through-nsnotificationcenter-in-objective-c

NSLog @ Successfully received the test notification @end ... somewhere else in another class ... void someMethod All instances of TestClass will be notified NSNotificationCenter defaultCenter postNotificationName @ TestNotification object..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

allowed for submitting new or updated iPhone only apps. This is direct from Apple's iOS 4 Readiness Checklist reg reqd All new applications and updates to existing applications must be built with iPhone SDK 4. Please note the App Store will no..

How to customize the background/border colors of a grouped table view cell?

http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colors-of-a-grouped-table-view-cell

very helpful for you CustomCellBackgroundView.h Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import UIKit UIKit.h typedef enum CustomCellBackgroundViewPositionTop CustomCellBackgroundViewPositionMiddle.. position @end CustomCellBackgroundView.m Created by Mike Akers on 11 21 08. Copyright 2008 __MyCompanyName__. All rights reserved. #import CustomCellBackgroundView.h static void addRoundedRectToPath CGContextRef context CGRect rect ..

Want to display a 3D model on the iPhone: how to get started?

http://stackoverflow.com/questions/413919/want-to-display-a-3d-model-on-the-iphone-how-to-get-started

or OpenGL ES which the iPhone apparently uses Anything about XCode My main problem is that I don't know where to start All the iPhone books I found seem to be about creating GUI applications not OpenGL apps. I found an OpenGL book but I don't..

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll

not be used unless there is a search when the search is canceled you can see below that this object is released . All UITableView methods must figure out what table view it will query and which applicable FRC to pull the information from...

iPhone - Backgrounding to poll for events

http://stackoverflow.com/questions/4656214/iphone-backgrounding-to-poll-for-events

once it was quit by the system . This we will abuse later. In my case I used VoIP backgrounding enabled in my plist. All the code here is done in your AppDelegate if the iOS device allows background execution this Handler will be called void.. Clear out the old notification before scheduling a new one. if oldNotifications count 0 app cancelAllLocalNotifications Create a new notification UILocalNotification alarm UILocalNotification alloc init autorelease if alarm.. at the expirationHandler. This will cause your app running as long as the system allows your app to be running. All timers and threads stay running until iOS terminates your app. void applicationDidEnterBackground UIApplication application..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

unique to the item in the whole database Datafield1 Datafield2 the ObjectId field will reference another table AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along the device Id and.. core data object in the local data store. Then my cloud server will check against the objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so that they can be merged... check against the objectId and device Id in the AllObjects table and find the record to change in the initial table. All changes should be timestamped so that they can be merged. The device will have to poll the server without using up too much..

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

.ipa option may be disabled. This happens when your build produces more than a single target say an app and a library. All of them end up in the build products folder and Xcode gets naïvely confused about how to package them both into an .ipa..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

employees their job is to build classes that can easily be reused reusability and modularity are high priorities. All of the best practices they mention for sharing data are part of dependency injection. That's the gist of my response. I'll..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

on here is you're asking the controller for the C function pointer for the method corresponding to the controller. All objects respond to methodForSelector and it works through some lower level Objective C runtime methods so you could do this.. to handle this as well but doing so requires a lot more typing and is also slower so there's little reason to do it. 1 All Objective C methods have two hidden arguments self and _cmd that are implicitly added when you call a method. 2 Actually..

Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK?

http://stackoverflow.com/questions/7760946/is-it-possible-to-target-older-ios-versions-when-using-xcode-4-2-and-ios-5-sdk

Mute/Silence an iOS device programmatically?

http://stackoverflow.com/questions/10371312/mute-silence-an-ios-device-programmatically

reason using AVSystemController like in this answer How to disable iOS System Sounds won't let me silence the device ALL the way down.. it drops it to a volume of 1 bar but not completely silent. I know it can be done probably with a private..

NSSetUncaughtExceptionHandler not catch all errors on iPhone

http://stackoverflow.com/questions/1128539/nssetuncaughtexceptionhandler-not-catch-all-errors-on-iphone

and the end users have not clue about what to say. For example release twice the same var is not catch So how I get ALL that pesky errors so the end user simple send me a crash report iphone error handling crash share improve this question..

How to correctly setup a NSPredicate for a to-many relationship when using Core Data?

http://stackoverflow.com/questions/1347776/how-to-correctly-setup-a-nspredicate-for-a-to-many-relationship-when-using-core

of any ExludedDay entity. I started trying NSPredicate dayIsNotExcludedPredicate NSPredicate predicateWithFormat @ ALL excludedDays.day @ today However despite what the documentation says ALL does not work and the application throws an exception.. NSPredicate predicateWithFormat @ ALL excludedDays.day @ today However despite what the documentation says ALL does not work and the application throws an exception Terminating app due to uncaught exception ˜NSInvalidArgumentException.. 'Matthew' If you want to find Departments in which all the employees are paid more than a certain amount you use an ALL operator as shown in the following example float salary ... NSPredicate predicate NSPredicate predicateWithFormat @ ALL..

Core Data: Quickest way to delete all instances of an entity

http://stackoverflow.com/questions/1383598/core-data-quickest-way-to-delete-all-instances-of-an-entity

model for let's say Cars could be about 2000 of them and I can't make the Web Service return anything less than 1 or ALL cars. The next time I open my application I want to refresh the Core Data persisted copy by calling the Web Service for.. however to prevent duplicates I would need to purge all data in the local cache first. Is there a quicker way to purge ALL instances of a specific entity in the managed object context e.g. all entities of type CAR or do I need to query them call..

iPhone ivar naming convention [duplicate]

http://stackoverflow.com/questions/2114587/iphone-ivar-naming-convention

. My take is that NO class local variable should be accessed without a setter getter property and thus they are ALL private given that why not name them in a way easier to read and use autocomplete on Any overlap in names from parameters..

shouldAutorotateToInterfaceOrientation doesn't work

http://stackoverflow.com/questions/2868132/shouldautorotatetointerfaceorientation-doesnt-work

mode. adding BOOL shouldAutorotateToInterfaceOrientation UIInterfaceOrientation interfaceOrientation return YES to ALL of my viewControllers does not do the work. During Debug i see that this method is called but it just won't work not in..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

ONE target... # # ...but this is a LIBRARY so Apple is wrong to set it to build just one. # ...we need to build ALL targets # ...we MUST NOT re build the target that is ALREADY being built Xcode WILL CRASH YOUR COMPUTER if you try this.. cp r CURRENTCONFIG_DEVICE_DIR PUBLIC_HEADERS_FOLDER_PATH CREATING_UNIVERSAL_DIR PUBLIC_HEADERS_FOLDER_PATH fi fi INSTALL INSTRUCTIONS Create a static lib project Select the Target In Build Settings tab set Build Active Architecture Only to NO.. phase OPTIONAL ...and drag drop them from the Project section to the Public section OPTIONAL ...and they will AUTOMATICALLY be exported every time you build the app into a sub directory of the debug universal directory they will be in usr local..

iPhone Development - Simulate Memory Warning

http://stackoverflow.com/questions/491075/iphone-development-simulate-memory-warning

i use Hardware Simulate Memory Warning option of iPhone Simulator the didReceiveMemoryWarning method is called for ALL my view controllers even the one which the user is viewing. I don't want to clear any content which is being used by the.. but I don't see a proper answer so here goes When a memory warning is received didReceiveMemoryWarning gets called in ALL view controllers whether they are the current one or not. The view controllers are simply listening for the memory warning..

Strange behavior of select/dropdown's onchange() JS event when using 'Next' on Mobile Safari Dropdown list item select box

http://stackoverflow.com/questions/5960731/strange-behavior-of-select-dropdowns-onchange-js-event-when-using-next-on-m

areaID ddlClear ddlTown createOption Select Town var items isNaN parseInt areaID 10 parseInt areaID if areaID areaID ALL for var i 0 i items i ddlTown.appendChild createOption Town i 1 Area areaID i function updateStreet areaID townID ddlClear.. areaID 10 parseInt areaID var items2 isNaN parseInt townID 10 parseInt townID var items items1 items2 if areaID areaID ALL if townID townId ALL for var i 0 i items i ddlStreet.appendChild createOption Street i 1 Area areaID Town townID i function.. var items2 isNaN parseInt townID 10 parseInt townID var items items1 items2 if areaID areaID ALL if townID townId ALL for var i 0 i items i ddlStreet.appendChild createOption Street i 1 Area areaID Town townID i function updateUnit streetID..

iOS 5: Curious about UIAppearance

http://stackoverflow.com/questions/8257556/ios-5-curious-about-uiappearance

UIImage imageNamed @ MyImageName forBarMetrics UIBarMetricsDefault This will set the background image of ALL navigation bars within your application. With the barMetrics you specify whether you want the image to be used also in landscape..