iphone Programming Glossary: it's
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..
Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps? http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like any desktop browser and render the service through the browser 2 Check the User Agent and in case it's Mobile Safari open a myprotocol URL to attempt to open the iPhone app and have it open Mobile iTunes.. 25 If custom uri is registered the app will launch immediately and your timer won't fire. If it's not set you'll get an ugly Cannot Open Page dialogue prior to the App Store application launching window.location..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present as normal. Edit I am adding the scroll bar just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes.. If you are adding the scroll view just to make the textfield scroll up when keyboard comes up then it's not needed. For showing the textfields without being hidden by the keyboard the standard way is to move..
How to develop or migrate apps for iPhone 5 screen resolution? http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's present as there seems to be no specific API for that. Example CGRect screenBounds UIScreen mainScreen..
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone has something but I can't make sense of it... I've seen lots of references to CCCrypt but it's failed in every case I've used it. I would also have to be able to decrypt an encrypted string but I.. c encryption nsstring aes share improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone Since the service I need to access is exposed by another party and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone..
The simplest way to resize an UIImage? http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage image _imageScaledToSize CGSizeMake 290 390 interpolationQuality 1 It works perfectly but it's an undocumented function so I can't use it anymore with iPhone OS4. So... what is the simplest way to..
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 libs one for sim one for device. Apple has now disabled that too. References This is a great idea it's an excellent approach but it doesn't work http www.drobnik.com touch 2010 04 universal static libraries.. Apple's latest changes the Simulator part isn't the same as the arm6 arm7 difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're accessing its backing ivar directly..
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 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 failed UIFont fontWithName..
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 focused Searching and here doesn't work with all PDFs some just show weird characters I guess it's an encoding issue but I'm not sure Credit BrainFeeder CALayer and Off Screen Rendering render the next..
Determine device (iPhone, iPod Touch) with iPhone SDK http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
How do I get a background location update every n minutes in my iOS application? http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application for background tasks Local notifications Local notifications can be scheduled every n minutes but it's not possible to execute some code to get the current location without the user having to launch the..
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 that the log in the category version IS getting executed and stops placed in the code are hit so it's not simply a case of the code somehow not getting used. Bounty update Since I haven't gotten any applicable..
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 is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString @ someMethod IMP imp _controller methodForSelector.. ns_returns_autoreleased The call to methodForSelector assumes that the return value of the method it's calling is an object but does not retain release it. So you could end up creating a leak if your object.. 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 if declare you objects as id and you're not importing all headers...
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk gets unregistered so you should account for that as well. Note The domain you use doesn't matter. It's just testing for a gateway to any domain. Important Note The Reachability class is one of the most used..
UIImagePickerController and extracting EXIF data from existing photos http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos and extracting EXIF data from existing photos It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However..
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how are many ways 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..
How to call Objective-C from Javascript? http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript information you need take whatever action is appropriate and return NO to cancel the navigation. It's probably best if you defer any lengthy processing using some flavor of performSelector . share improve..
How can I send mail from an iPhone application http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application MFMailComposeResult result error NSError error if result MFMailComposeResultSent NSLog @ It's away self dismissModalViewControllerAnimated YES Remember to check if the device is configured for sending..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework will need to be released later to avoid leaking setupReal vDSP_create_fftsetup log2n FFT_RADIX2 It's worth noting that if we set log2n to eg 8 you can throw these precalculated values into any fft function..
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 initializer . But I'll leave the 2.0 version of the answer here for anyone that needs it p It's harder than it really should be. Here's how I did this when I had to do it You need to set the UITableViewCell's.. set automatically so I had to set it in the UITableViewDataSource's cellForRowAtIndexPath method. It's a real PITA but I've confirmed with Apple engineers that this is currently the only way. Update Here's..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode there is no reason to support anything below 4.0 so the question is now only a historic curiosity. It's incredible how much trouble that caused so many developers for so long Purely for historical reasons..
“Warning: iPhone apps should include an armv6 architecture” even with build config set http://stackoverflow.com/questions/4198676/warning-iphone-apps-should-include-an-armv6-architecture-even-with-build-conf Warning iPhone apps should include an armv6 architecture&rdquo even with build config set It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having..
Lock-down iPhone/iPod/iPad so it can only run one app http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app a new feature in iOS 6 called 'guided access' that allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS.. don't have web space you can just use dropbox public folder URLs or switch on your mac webserver. It's possible that you can load the config using IPCU too but I have not tried this. This config file will..
What does an underscore signify in the name of a member variable in Objective-C? [duplicate] http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c objective c share improve this question Basically it doesn't mean anything to the compiler. It's just a coding practice used on private instance variables. Your code isn't going to break if you don't..
Tab bar controller inside a navigation controller, or sharing a navigation root view http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root this question The two previous answers got it right I don't use UITabBarController in Tweetie. It's pretty easy to write a custom XXTabBarController plain subclass of UIViewController that is happy to..
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 counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector.. where silencing this 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..
Open source CoverFlow library for iPhone [closed] http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone
Is there a good charting library for iPhone? [closed] http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications...
How to get IMEI on iPhone? http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone on ericasadun.com. http ericasadun.com iPhoneDocs300 _network_controller_8h source.html It's been removed now I created a header file copy and paste the NetworkController.h file into it and add..
Dispelling the UIImage imageNamed: FUD http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud the case. So there you have it. imageNamed will not smash your windows or murder your children. It's pretty simple but it is an optimisation tool. Sadly it is badly named and there is no equivaluent that..
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 cocoa touch sms share improve this question Restrictions..
Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps? http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like would be a workaround One idea 1 Use http URLs that open in any desktop browser and render the service through the browser 2 Check the User Agent and in case it's Mobile Safari open a myprotocol URL to attempt to open the iPhone app and have it open Mobile iTunes to the download of the app in case the attempt fails Not sure..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present with is brought up by a tabbar UITabBar which needs to function as normal. Edit I am adding the scroll bar just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes for example. I've got it working where I change the.. contents you have now does not fit in the iPhone screen. If you are adding the scroll view just to make the textfield scroll up when keyboard comes up then it's not needed. For showing the textfields without being hidden by the keyboard the standard way is to move up down the view having textfields whenever the keyboard..
How to develop or migrate apps for iPhone 5 screen resolution? http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution specifically then it looks like you have to check height of UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's present as there seems to be no specific API for that. Example CGRect screenBounds UIScreen mainScreen bounds if screenBounds.size.height 568 code for 4 inch screen..
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone post but I've had no luck so far. Apple's CryptoExercise certainly has something but I can't make sense of it... I've seen lots of references to CCCrypt but it's failed in every case I've used it. I would also have to be able to decrypt an encrypted string but I hope that's as simple as kCCEncrypt kCCDecrypt. iphone objective.. hope that's as simple as kCCEncrypt kCCDecrypt. iphone objective c encryption nsstring aes share improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does seem to work pretty decently... aside from the extra comma..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone that is present in the iPhone SDK to access SOAP services Since the service I need to access is exposed by another party and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone ios web services soap wsdl share improve this question ..
The simplest way to resize an UIImage? http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage I was using this method to resize the image UIImage newImage image _imageScaledToSize CGSizeMake 290 390 interpolationQuality 1 It works perfectly but it's an undocumented function so I can't use it anymore with iPhone OS4. So... what is the simplest way to resize an UIImage iphone resize uiimage share improve this..
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 Apple disabled that. Throughout 2009 we made pairs of static libs one for sim one for device. Apple has now disabled that too. References This is a great idea it's an excellent approach but it doesn't work http www.drobnik.com touch 2010 04 universal static libraries There's some bugs in his script that means it only works.. do i compile a static library fat for armv6 armv7 and i386 Since Apple's latest changes the Simulator part isn't the same as the arm6 arm7 difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459 easy copy paste of latest version but install..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c property indicates that's the pattern they expect you to follow. No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're accessing its backing ivar directly though using the 2.0 dot access to properties does make it more..
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 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 failed UIFont fontWithName size experiment I downloaded Harrowprint.tff downloaded..
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 Keywords Getting Raw Text and here and Here and here positioning focused Searching and here doesn't work with all PDFs some just show weird characters I guess it's an encoding issue but I'm not sure Credit BrainFeeder CALayer and Off Screen Rendering render the next page for fast smooth display Documentation Quartz PDFObjects..
Determine device (iPhone, iPod Touch) with iPhone SDK http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
How do I get a background location update every n minutes in my iOS application? http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application is running in the foreground but doesn't seem to be designed for background tasks Local notifications Local notifications can be scheduled every n minutes but it's not possible to execute some code to get the current location without the user having to launch the app via the notification . This approach also doesn't seem to..
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 results and I judge the category version to be wrong. Note that the log in the category version IS getting executed and stops placed in the code are hit so it's not simply a case of the code somehow not getting used. Bounty update Since I haven't gotten any applicable replies yet I'll extend the bounty deadline for another..
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 share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString @ someMethod IMP imp _controller methodForSelector selector void func id SEL void imp func _controller.. until inner most release pool is drained attributed with ns_returns_autoreleased The call to methodForSelector assumes that the return value of the method it's calling is an object but does not retain release it. So you could end up creating a leak if your object is supposed to be released as in #3 above that is the method.. 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 if declare you objects as id and you're not importing all headers. You could end up with crashes in code that the compiler..
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk where you receive a memory warning and the observer never gets unregistered so you should account for that as well. Note The domain you use doesn't matter. It's just testing for a gateway to any domain. Important Note The Reachability class is one of the most used classes in projects so you might run into naming conflicts..
UIImagePickerController and extracting EXIF data from existing photos http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos and extracting EXIF data from existing photos It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However a couple of apps in the app store Mobile Fotos PixelPipe..
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how a modal view controller containing a simple tableview. There are many ways 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..
How to call Objective-C from Javascript? http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript
How can I send mail from an iPhone application http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application MFMailComposeViewController controller didFinishWithResult MFMailComposeResult result error NSError error if result MFMailComposeResultSent NSLog @ It's away self dismissModalViewControllerAnimated YES Remember to check if the device is configured for sending email if MFMailComposeViewController canSendMail Show..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework save us time later. Note that this call creates an array which will need to be released later to avoid leaking setupReal vDSP_create_fftsetup log2n FFT_RADIX2 It's worth noting that if we set log2n to eg 8 you can throw these precalculated values into any fft function that uses resolution 2^8. So unless you want ultimate memory..
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 especially in combination with the UIColor colorWithPatternImage initializer . But I'll leave the 2.0 version of the answer here for anyone that needs it p It's harder than it really should be. Here's how I did this when I had to do it You need to set the UITableViewCell's backgroundView property to a custom UIView that.. Unfortunately I couldn't figure out how to have this mode set automatically so I had to set it in the UITableViewDataSource's cellForRowAtIndexPath method. It's a real PITA but I've confirmed with Apple engineers that this is currently the only way. Update Here's the code for that custom bg view. There's a drawing bug that..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode another landscape view with no problem. As of April 2011 there is no reason to support anything below 4.0 so the question is now only a historic curiosity. It's incredible how much trouble that caused so many developers for so long Purely for historical reasons here is the original discussion and solution to repeat this..
“Warning: iPhone apps should include an armv6 architecture” even with build config set http://stackoverflow.com/questions/4198676/warning-iphone-apps-should-include-an-armv6-architecture-even-with-build-conf Warning iPhone apps should include an armv6 architecture&rdquo even with build config set It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building my ad hoc distribution configuration...
Lock-down iPhone/iPod/iPad so it can only run one app http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app EDIT EDIT brainray posted below and pointed out that there's a new feature in iOS 6 called 'guided access' that allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS 7 now includes an 'App Lock' payload as part of the device.. open the link to your .mobileconfig file in safari. If you don't have web space you can just use dropbox public folder URLs or switch on your mac webserver. It's possible that you can load the config using IPCU too but I have not tried this. This config file will not load in the iPhone Configuration Utility as it uses keys..
What does an underscore signify in the name of a member variable in Objective-C? [duplicate] http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c
Tab bar controller inside a navigation controller, or sharing a navigation root view http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root touch uitabbarcontroller uinavigationbar share improve this question The two previous answers got it right I don't use UITabBarController in Tweetie. It's pretty easy to write a custom XXTabBarController plain subclass of UIViewController that is happy to get pushed onto a nav controller stack but still lives by the..
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 this warning anymore iphone objective c ios automatic ref counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString @ someMethod IMP imp _controller.. up blank. Someone please share if they have had an experience where silencing this 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...
Open source CoverFlow library for iPhone [closed] http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone
Is there a good charting library for iPhone? [closed] http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone on the iPhone. Core Plot also encompases many other use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications. Edit 2 10 Core Plot has come a long way since I first..
How to get IMEI on iPhone? http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone that erica had posted the header file Message NetworkController.h on ericasadun.com. http ericasadun.com iPhoneDocs300 _network_controller_8h source.html It's been removed now I created a header file copy and paste the NetworkController.h file into it and add the private framework Message.framework to my project import..
Dispelling the UIImage imageNamed: FUD http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud you get a chance and report bugs if you find that this is not the case. So there you have it. imageNamed will not smash your windows or murder your children. It's pretty simple but it is an optimisation tool. Sadly it is badly named and there is no equivaluent that is as easy to use hence people overuse it and get upset when..
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 cocoa touch..
Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps? http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like URLs that open in any desktop browser and render the service through the browser 2 Check the User Agent and in case it's Mobile Safari open a myprotocol URL to attempt to open the iPhone app and have it open Mobile iTunes to the download of.. apps yourappname 25 If custom uri is registered the app will launch immediately and your timer won't fire. If it's not set you'll get an ugly Cannot Open Page dialogue prior to the App Store application launching window.location custom..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present which needs to function as normal. Edit I am adding the scroll bar just for when the keyboard comes up. Even though it's not needed I feel like it provides a better interface because then the user can scroll and change textboxes for example... the iPhone screen. If you are adding the scroll view just to make the textfield scroll up when keyboard comes up then it's not needed. For showing the textfields without being hidden by the keyboard the standard way is to move up down the view..
How to develop or migrate apps for iPhone 5 screen resolution? http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution to check height of UIScreen mainScreen bounds or applicationFrame but then you need to consider status bar height if it's present as there seems to be no specific API for that. Example CGRect screenBounds UIScreen mainScreen bounds if screenBounds.size.height..
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone CryptoExercise certainly has something but I can't make sense of it... I've seen lots of references to CCCrypt but it's failed in every case I've used it. I would also have to be able to decrypt an encrypted string but I hope that's as simple.. iphone objective c encryption nsstring aes share improve this question Since you haven't posted any code it's difficult to know exactly which problems you're encountering. However the blog post you link to does seem to work pretty..
How to access SOAP services from iPhone http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone to access SOAP services Since the service I need to access is exposed by another party and they only expose it as SOAP it's unfortunately not an option to switch to another type of interface e.g. REST based API . Gero iphone ios web services soap..
The simplest way to resize an UIImage? http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage the image UIImage newImage image _imageScaledToSize CGSizeMake 290 390 interpolationQuality 1 It works perfectly but it's an undocumented function so I can't use it anymore with iPhone OS4. So... what is the simplest way to resize an UIImage..
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 made pairs of static libs one for sim one for device. Apple has now disabled that too. References This is a great idea it's an excellent approach but it doesn't work http www.drobnik.com touch 2010 04 universal static libraries There's some bugs.. armv7 and i386 Since Apple's latest changes the Simulator part isn't the same as the arm6 arm7 difference any more it's a different problem see above iphone xcode share improve this question ALTERNATIVES https gist.github.com 3705459..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c they expect you to follow. No matter what since objects still have to send messages to themselves to access properties it's hard to confuse when you're accessing a property or when you're accessing its backing ivar directly though using the 2.0..
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 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 failed UIFont fontWithName size experiment..
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 and here positioning focused Searching and here doesn't work with all PDFs some just show weird characters I guess it's an encoding issue but I'm not sure Credit BrainFeeder CALayer and Off Screen Rendering render the next page for fast smooth..
Determine device (iPhone, iPod Touch) with iPhone SDK http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
How do I get a background location update every n minutes in my iOS application? http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application seem to be designed for background tasks Local notifications Local notifications can be scheduled every n minutes but it's not possible to execute some code to get the current location without the user having to launch the app via the notification..
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 to be wrong. Note that the log in the category version IS getting executed and stops placed in the code are hit so it's not simply a case of the code somehow not getting used. Bounty update Since I haven't gotten any applicable replies yet..
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 The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString @ someMethod IMP imp _controller methodForSelector selector.. attributed with ns_returns_autoreleased The call to methodForSelector assumes that the return value of the method it's calling is an object but does not retain release it. So you could end up creating a leak if your object is supposed to be.. 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 if declare you objects as id and you're not importing all headers. You could end up..
How to check for an active Internet Connection on iPhone SDK? http://stackoverflow.com/questions/1083701/how-to-check-for-an-active-internet-connection-on-iphone-sdk the observer never gets unregistered so you should account for that as well. Note The domain you use doesn't matter. It's just testing for a gateway to any domain. Important Note The Reachability class is one of the most used classes in projects..
UIImagePickerController and extracting EXIF data from existing photos http://stackoverflow.com/questions/1238838/uiimagepickercontroller-and-extracting-exif-data-from-existing-photos and extracting EXIF data from existing photos It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However a couple of apps..
Add UIPickerView & a Button in Action sheet - How? http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how simple tableview. There are many ways 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..
How to call Objective-C from Javascript? http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript
How can I send mail from an iPhone application http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application didFinishWithResult MFMailComposeResult result error NSError error if result MFMailComposeResultSent NSLog @ It's away self dismissModalViewControllerAnimated YES Remember to check if the device is configured for sending email if MFMailComposeViewController..
Using the apple FFT and accelerate Framework http://stackoverflow.com/questions/3398753/using-the-apple-fft-and-accelerate-framework creates an array which will need to be released later to avoid leaking setupReal vDSP_create_fftsetup log2n FFT_RADIX2 It's worth noting that if we set log2n to eg 8 you can throw these precalculated values into any fft function that uses resolution..
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 colorWithPatternImage initializer . But I'll leave the 2.0 version of the answer here for anyone that needs it p It's harder than it really should be. Here's how I did this when I had to do it You need to set the UITableViewCell's backgroundView.. to have this mode set automatically so I had to set it in the UITableViewDataSource's cellForRowAtIndexPath method. It's a real PITA but I've confirmed with Apple engineers that this is currently the only way. Update Here's the code for that..
iPhone app in landscape mode http://stackoverflow.com/questions/402/iphone-app-in-landscape-mode As of April 2011 there is no reason to support anything below 4.0 so the question is now only a historic curiosity. It's incredible how much trouble that caused so many developers for so long Purely for historical reasons here is the original..
“Warning: iPhone apps should include an armv6 architecture” even with build config set http://stackoverflow.com/questions/4198676/warning-iphone-apps-should-include-an-armv6-architecture-even-with-build-conf Warning iPhone apps should include an armv6 architecture&rdquo even with build config set It's been a while since I've had to adjust project build settings. After upgrading to a recent SDK I'm having trouble building..
Lock-down iPhone/iPod/iPad so it can only run one app http://stackoverflow.com/questions/5011774/lock-down-iphone-ipod-ipad-so-it-can-only-run-one-app out that there's a new feature in iOS 6 called 'guided access' that allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago would have saved us a bit of hassle EDIT EDIT EDIT iOS 7 now includes an.. in safari. If you don't have web space you can just use dropbox public folder URLs or switch on your mac webserver. It's possible that you can load the config using IPCU too but I have not tried this. This config file will not load in the iPhone..
What does an underscore signify in the name of a member variable in Objective-C? [duplicate] http://stackoverflow.com/questions/5659156/what-does-an-underscore-signify-in-the-name-of-a-member-variable-in-objective-c is it declared iphone objective c share improve this question Basically it doesn't mean anything to the compiler. It's just a coding practice used on private instance variables. Your code isn't going to break if you don't use it. share improve..
Tab bar controller inside a navigation controller, or sharing a navigation root view http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root share improve this question The two previous answers got it right I don't use UITabBarController in Tweetie. It's pretty easy to write a custom XXTabBarController plain subclass of UIViewController that is happy to get pushed onto a nav..
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 c ios automatic ref counting share improve this question Solution The compiler is warning about this for a reason. It's very rare that this warning should simply be ignored and it's easy to work around. Here's how SEL selector NSSelectorFromString.. have had an experience where silencing this 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..
Open source CoverFlow library for iPhone [closed] http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone
Is there a good charting library for iPhone? [closed] http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone many other use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications. Edit 2 10 Core..
How to get IMEI on iPhone? http://stackoverflow.com/questions/823181/how-to-get-imei-on-iphone Message NetworkController.h on ericasadun.com. http ericasadun.com iPhoneDocs300 _network_controller_8h source.html It's been removed now I created a header file copy and paste the NetworkController.h file into it and add the private framework..
Dispelling the UIImage imageNamed: FUD http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud find that this is not the case. So there you have it. imageNamed will not smash your windows or murder your children. It's pretty simple but it is an optimisation tool. Sadly it is badly named and there is no equivaluent that is as easy to use..
|