iphone Programming Glossary: requires
How to programmatically send SMS on the iPhone? http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone user explicitly aware of it. You still cannot send fully automated SMS from the iPhone itself it requires some user interaction. But this at least allows you to populate everything and avoids closing the application...
Determining if an iPhone is Jail broken Programatically http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically cracked http thwart ipa cracks.blogspot.com 2008 11 detection.html In short the cracking usually requires changing the Info.plist. Since it's regular file you have access to it's pretty easy to determine such..
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have..
Programmatically Request Access to Contacts http://stackoverflow.com/questions/12648244/programmatically-request-access-to-contacts address book no longer works. I believe this is a permission related problem since Apple now requires user permission before accessing contacts fixing this issue http www.cultofmac.com 179733 19 of ios..
Arguments in @selector http://stackoverflow.com/questions/1349740/arguments-in-selector that is it is an action turned into an object. Whilst creating an NSTimer object using a selector requires the format of the method being void timerFireMethod NSTimer theTimer An NSInvocation allows you to set..
Detecting which UIButton was pressed in a UITableView http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following...
NSURLConnection and Basic HTTP Authentication http://stackoverflow.com/questions/1973325/nsurlconnection-and-basic-http-authentication
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with information about your app every..
Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba As pointed out by PrairieHippo maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back..
Compression API on the iPhone http://stackoverflow.com/questions/230984/compression-api-on-the-iphone long as they'll generally compile under OS X. bzip2 is a better choice for smallest file sizes but requires much more CPU power to compress and decompress. Also since you're talking to a web service you may not..
How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:? http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter central dispatch share improve this question I think you're looking for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your..
Rendering to non-power-of-two texture on iPhone http://stackoverflow.com/questions/4760174/rendering-to-non-power-of-two-texture-on-iphone render buffer it has to be the size of the render buffer which isn't POT sized. But OpenGL ES 1.1 requires textures to be POT. Maybe it can't be done on ES 1.1 iphone opengl es render to texture share improve..
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 obvious modifications. This provides an overall much more robust and reliable sync strategy but requires more effort to be implemented correctly. EDIT The Objective C framework called ZSync and developed by..
iPhone Facebook Video Upload http://stackoverflow.com/questions/5355846/iphone-facebook-video-upload the Facebook SDK on GitHub. I did not touch it for several weeks but it used to work fine only it requires the old style authentication see this branch . There are some comments in the FBVideoUpload class header..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil without having to manage UDID I do not need a solution like testflight or betabuilder all these requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing.. file contained the device ID's. Edit I've found a much better way of distributing apps but it requires you to have a PHP server. What you do is create a PHP file that generates the plist file on the fly..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now be not unique i. e. it should stay the same when the user uninstalls and re installs the app. This requires a bit of effort since the most reliable per device identifier seems to be the MAC address. You could..
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 . More It's possible 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..
Animate change of view controllers without using navigation controller stack, subviews or modal controllers? http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su animation transitions. Adding a view controller as a sub view to an existing view controller requires passing events to the sub view controller which is a pain to manage loaded with little annoyances and..
How to programmatically send SMS on the iPhone? http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone prevents applications from sending automated SMS without the user explicitly aware of it. You still cannot send fully automated SMS from the iPhone itself it requires some user interaction. But this at least allows you to populate everything and avoids closing the application. The MFMessageComposeViewController class is well..
Determining if an iPhone is Jail broken Programatically http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included an image to understand my requirements. Could you..
Programmatically Request Access to Contacts http://stackoverflow.com/questions/12648244/programmatically-request-access-to-contacts to iOS 6 I've noticed that my code to add a contact to iPhone's address book no longer works. I believe this is a permission related problem since Apple now requires user permission before accessing contacts fixing this issue http www.cultofmac.com 179733 19 of ios apps access your address book without your permission until..
Arguments in @selector http://stackoverflow.com/questions/1349740/arguments-in-selector as the docs define it an Objective C message rendered static that is it is an action turned into an object. Whilst creating an NSTimer object using a selector requires the format of the method being void timerFireMethod NSTimer theTimer An NSInvocation allows you to set the target the selector and the arguments that you pass in..
Detecting which UIButton was pressed in a UITableView http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview control. void buttonPressedAction id sender UIButton button UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still like to have an opinion whether this is the..
NSURLConnection and Basic HTTP Authentication http://stackoverflow.com/questions/1973325/nsurlconnection-and-basic-http-authentication
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption listed as exemptions under question 2 you need to submit for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with information about your app every January. 2nd Question Does your product qualify for any exemptions..
Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba property of the toolbar item. Works well for me. Edit As pointed out by PrairieHippo maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back button instead of default behaviour displaying title of previous..
Compression API on the iPhone http://stackoverflow.com/questions/230984/compression-api-on-the-iphone and bzip2 are available. And you can always add others as long as they'll generally compile under OS X. bzip2 is a better choice for smallest file sizes but requires much more CPU power to compress and decompress. Also since you're talking to a web service you may not have to do much. NSURLRequest accepts gzip encoding transparently..
How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:? http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter int double float iphone objective c objective c blocks grand central dispatch share improve this question I think you're looking for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your local scope instead. int parameter1 12 float parameter2 144.1..
Rendering to non-power-of-two texture on iPhone http://stackoverflow.com/questions/4760174/rendering-to-non-power-of-two-texture-on-iphone ES 1.1 on the iPhone 2G and older If I bind a texture as a render buffer it has to be the size of the render buffer which isn't POT sized. But OpenGL ES 1.1 requires textures to be POT. Maybe it can't be done on ES 1.1 iphone opengl es render to texture share improve this question While OpenGL ES 1.1 does not support non..
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 Time Pairs which applies equally well to core data with some obvious modifications. This provides an overall much more robust and reliable sync strategy but requires more effort to be implemented correctly. EDIT The Objective C framework called ZSync and developed by Marcus Zarra has been deprecated given that iCloud supports..
iPhone Facebook Video Upload http://stackoverflow.com/questions/5355846/iphone-facebook-video-upload this question I ™ve got a video upload branch in my fork of the Facebook SDK on GitHub. I did not touch it for several weeks but it used to work fine only it requires the old style authentication see this branch . There are some comments in the FBVideoUpload class header but the interface is pretty much self explanatory. There..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil to distribute internally demo of iPad application wirelessly without having to manage UDID I do not need a solution like testflight or betabuilder all these requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing another studio doing a much smarter way right now and.. subscription. I imagine it would as long as the .mobileprovision file contained the device ID's. Edit I've found a much better way of distributing apps but it requires you to have a PHP server. What you do is create a PHP file that generates the plist file on the fly and returns that. In the links for large image small image and..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now you will get a new one each time. But you might want it to be not unique i. e. it should stay the same when the user uninstalls and re installs the app. This requires a bit of effort since the most reliable per device identifier seems to be the MAC address. You could query the MAC and use that as UUID. Edit One needs to always..
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 warning was necessary and the above doesn't handle things properly . More It's possible 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..
Animate change of view controllers without using navigation controller stack, subviews or modal controllers? http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su have ViewController stacks to manage and limited animation transitions. Adding a view controller as a sub view to an existing view controller requires passing events to the sub view controller which is a pain to manage loaded with little annoyances and in general feels like a bad hack when implementing Apple also..
How to programmatically send SMS on the iPhone? http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone SMS without the user explicitly aware of it. You still cannot send fully automated SMS from the iPhone itself it requires some user interaction. But this at least allows you to populate everything and avoids closing the application. The MFMessageComposeViewController..
Determining if an iPhone is Jail broken Programatically http://stackoverflow.com/questions/1140856/determining-if-an-iphone-is-jail-broken-programatically if your app was cracked http thwart ipa cracks.blogspot.com 2008 11 detection.html In short the cracking usually requires changing the Info.plist. Since it's regular file you have access to it's pretty easy to determine such changes. share improve..
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included an image..
Programmatically Request Access to Contacts http://stackoverflow.com/questions/12648244/programmatically-request-access-to-contacts add a contact to iPhone's address book no longer works. I believe this is a permission related problem since Apple now requires user permission before accessing contacts fixing this issue http www.cultofmac.com 179733 19 of ios apps access your address..
Arguments in @selector http://stackoverflow.com/questions/1349740/arguments-in-selector rendered static that is it is an action turned into an object. Whilst creating an NSTimer object using a selector requires the format of the method being void timerFireMethod NSTimer theTimer An NSInvocation allows you to set the target the selector..
Detecting which UIButton was pressed in a UITableView http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview UIButton button UIButton sender how do I know which button sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still like..
NSURLConnection and Basic HTTP Authentication http://stackoverflow.com/questions/1973325/nsurlconnection-and-basic-http-authentication
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption 2 you need to submit for an ERN authorization . Examples of standard encryption are AES SSL https . This authorization requires that you submit an annual report to two U.S. Government agencies with information about your app every January. 2nd Question..
Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba well for me. Edit As pointed out by PrairieHippo maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back button instead of..
Compression API on the iPhone http://stackoverflow.com/questions/230984/compression-api-on-the-iphone add others as long as they'll generally compile under OS X. bzip2 is a better choice for smallest file sizes but requires much more CPU power to compress and decompress. Also since you're talking to a web service you may not have to do much...
Showing login view controller before main tab bar controller http://stackoverflow.com/questions/2716755/showing-login-view-controller-before-main-tab-bar-controller login view controller before main tab bar controller I'm creating an iPad app with a tab bar controller that requires login. So on launch I want to show a LoginViewController and if login is successful then show the tab bar controller. This..
How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:? http://stackoverflow.com/questions/4139219/how-do-you-trigger-a-block-after-a-delay-like-performselectorwithobjectafter c blocks grand central dispatch share improve this question I think you're looking for dispatch_after . It requires your block to accept no parameters but you can just let the block capture those variables from your local scope instead...
Rendering to non-power-of-two texture on iPhone http://stackoverflow.com/questions/4760174/rendering-to-non-power-of-two-texture-on-iphone bind a texture as a render buffer it has to be the size of the render buffer which isn't POT sized. But OpenGL ES 1.1 requires textures to be POT. Maybe it can't be done on ES 1.1 iphone opengl es render to texture share improve this question ..
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 to core data with some obvious modifications. This provides an overall much more robust and reliable sync strategy but requires more effort to be implemented correctly. EDIT The Objective C framework called ZSync and developed by Marcus Zarra has been..
iPhone Facebook Video Upload http://stackoverflow.com/questions/5355846/iphone-facebook-video-upload branch in my fork of the Facebook SDK on GitHub. I did not touch it for several weeks but it used to work fine only it requires the old style authentication see this branch . There are some comments in the FBVideoUpload class header but the interface..
How to distribute ios application wirelessly without managing UDIDs and recompilation http://stackoverflow.com/questions/5546581/how-to-distribute-ios-application-wirelessly-without-managing-udids-and-recompil application wirelessly without having to manage UDID I do not need a solution like testflight or betabuilder all these requires me to manage UDID in the apple provisioning profile portal. I am asking this question because I am seeing another studio.. as the .mobileprovision file contained the device ID's. Edit I've found a much better way of distributing apps but it requires you to have a PHP server. What you do is create a PHP file that generates the plist file on the fly and returns that. In..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now might want it to be not unique i. e. it should stay the same when the user uninstalls and re installs the app. This requires a bit of effort since the most reliable per device identifier seems to be the MAC address. You could query the MAC and use..
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 handle things properly . More It's possible 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..
Animate change of view controllers without using navigation controller stack, subviews or modal controllers? http://stackoverflow.com/questions/8146253/animate-change-of-view-controllers-without-using-navigation-controller-stack-su to manage and limited animation transitions. Adding a view controller as a sub view to an existing view controller requires passing events to the sub view controller which is a pain to manage loaded with little annoyances and in general feels like..
Translating iOS app to unsupported/non-standard languages http://stackoverflow.com/questions/10259695/translating-ios-app-to-unsupported-non-standard-languages English. Cons Wreaks havoc on my localization tools. Its confusing for future maintainers and therefore error prone. Requires a weird build setup. Option 2 Abuse NSUserDefaults AppleLanguages The AppleLanguages object in NSUserDefaults contains a..
Free Weather API [closed] http://stackoverflow.com/questions/1305127/free-weather-api Underground API Example http api.wunderground.com auto wui geo GeoLookupXML index.xml query 90210 Weather Channel Requires signup Example found sample code at github . Ruby gem for accessing the Weather Channel XML API WeatherAPI Norway Example..
Indoor navigation hardware/software requirements for iOS http://stackoverflow.com/questions/15732181/indoor-navigation-hardware-software-requirements-for-ios extra hardware or initial survey phase are needed. UWB very accurate techniques based on time of flight measurements. Requires expensive hardware for both transmitter and receiver. You can achieve cm accuracy with this but it's probably not what you're..
Not all the comments visible when pulling a post using Facebook graph API iphone http://stackoverflow.com/questions/4393137/not-all-the-comments-visible-when-pulling-a-post-using-facebook-graph-api-iphone this works Grab the feed for all the basic wall post information then grab the comments for each post individually. Requires more complex refresh methods and a little trickery trust your comments array over the JSON comment count number where you..
What is the best way to deal with the NSDateFormatter locale “feature”? http://stackoverflow.com/questions/6613110/what-is-the-best-way-to-deal-with-the-nsdateformatter-locale-feature obscure My first instinct is to override NSDateFormatter with a version that would set the locale in the init method. Requires changing two lines the alloc init line and the added import. Added This is what I've come up with so far seems to work in..
XCode Set Compatible Devices http://stackoverflow.com/questions/8364021/xcode-set-compatible-devices Compatible with iPhone 3GS iPhone 4 iPhone 4S iPod touch 3rd generation iPod touch 4th generation and iPad. Requires iOS 4.0 or later. How do I include the iPod Touch 2G in this list I have an iPod 3G as one of my testing devices and my..
|