iphone Programming Glossary: available
How do I record audio on iPhone with AVAudioRecorder? http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert show cantRecordAlert release..
Reading ePub format http://stackoverflow.com/questions/1388467/reading-epub-format format I am trying to develop an iPhone application to read ePub files. Is there any framework available to develop this I have no idea about how to read this file format. I tried to parse a sample file with..
How to force NSLocalizedString to use a specific language http://stackoverflow.com/questions/1669645/how-to-force-nslocalizedstring-to-use-a-specific-language one set by the user for their phone and the subsequent ones used as fallbacks if a resource is not available in the preferred language. on the desktop the user can specify multiple languages with a custom ordering..
Programmatically get own phone number in iOS http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios access to files preferences network resources hardware and so on. The device's phone number is not available within your application's container. You will need to revise your application to read only within your..
How do I associate file types with an iPhone application? http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To..
How To Make iPhone App compatible with multiple SDK (firmware) versions http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions Deployment vs Base SDK in detail. Weak link to the libraries frameworks with symbols that are only available in the newer iOS. This is so your app will run on a device that doesn't have the newer symbols. You.. run on a device that doesn't have the newer symbols. You must check to see that a newer method is available before calling it. You have to make sure not to call a method that is 5.0 or 4.X only when your app..
Check iPhone iOS Version http://stackoverflow.com/questions/3339722/check-iphone-ios-version There is usually a more reliable method of checking whether a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString.. a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString if NSClassFromString @ UIPopoverController Do something.. or greater is required to use CADisplayLink. The NSTimer class is used as fallback when it isn't available. NSString reqSysVer @ 3.1 NSString currSysVer UIDevice currentDevice systemVersion if currSysVer compare..
How do you use NSAttributedString? http://stackoverflow.com/questions/3482346/how-do-you-use-nsattributedstring about the NSAttributedString which was introduced with the iPad SDK 3.2 or around 3.2 and is available on the iPhone as of iPhone SDK 4.0 beta . I would like to have a string that has three colours. The..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store of the devices to your application package. UUIDs can be easiest retrieved using Ad Hoc Helper available from the App Store. For further details on this method see Craig Hockenberry's Beta testing on iPhone..
display image from URL retrieved from ALAsset in iPhone http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone seems to be a bit slower with iOS5 maybe single core devices so I couldnt rely on the image to be available directly after calling findLargeImage . So I changed it to call out to a delegate. @protocol HiresImageDelegate..
How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll thrown about incorrect number of sections or rows in sections. Here is what I did I have two FRCs available as properties fetchedResultsController and searchFetchedResultsController. The searchFetchedResultsController..
How do I size a UITextView to its content? http://stackoverflow.com/questions/50467/how-do-i-size-a-uitextview-to-its-content _textView.frame frame One thing to note is that the correct contentSize is only available after the UITextView has been added to the view with addSubview . Prior to that it is equal to frame.size..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers the best practices using an example with the UIImagePickerController. I wish the videos were available Ok so... I'm afraid my objc fu is not so strong. I'm also a bit confused by the final line in the above..
Objective C HTML escape/unescape http://stackoverflow.com/questions/659602/objective-c-html-escape-unescape the solution below. Cocoa CF has the CFXMLCreateStringByUnescapingEntities function but that's not available on the iPhone. @interface MREntitiesConverter NSObject NSMutableString resultString @property nonatomic..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now property is deprecated in iOS 5 and above. No alternative method or property appears to be available or forthcoming. Many of our existing apps are tightly dependent on this property for uniquely identifying..
Is there a barcode recognition framework for iOS? http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and the partial C port..
Reducing piracy of iPhone applications http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications the application Likewise what code would I use to access that extra data What seem to be the best available technical approaches to this problem at the present time Please refrain from non programming answers..
How do I record audio on iPhone with AVAudioRecorder? http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder audioSession.inputIsAvailable if audioHWAvailable UIAlertView cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert show cantRecordAlert release return start recording recorder recordForDuration NSTimeInterval..
Reading ePub format http://stackoverflow.com/questions/1388467/reading-epub-format ePub format I am trying to develop an iPhone application to read ePub files. Is there any framework available to develop this I have no idea about how to read this file format. I tried to parse a sample file with .epub extension using NSXML Parser but that fails. iphone..
How to force NSLocalizedString to use a specific language http://stackoverflow.com/questions/1669645/how-to-force-nslocalizedstring-to-use-a-specific-language an array of language codes with the first one being the one set by the user for their phone and the subsequent ones used as fallbacks if a resource is not available in the preferred language. on the desktop the user can specify multiple languages with a custom ordering in System Preferences You can override the global setting..
Programmatically get own phone number in iOS http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios is a set of fine grained controls limiting an application's access to files preferences network resources hardware and so on. The device's phone number is not available within your application's container. You will need to revise your application to read only within your directory container and resubmit your binary to iTunes Connect..
How do I associate file types with an iPhone application? http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application a document controller can hand off processing of these documents to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the..
How To Make iPhone App compatible with multiple SDK (firmware) versions http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions code. This article SDK and Deployment Targets discusses Deployment vs Base SDK in detail. Weak link to the libraries frameworks with symbols that are only available in the newer iOS. This is so your app will run on a device that doesn't have the newer symbols. You must check to see that a newer method is available before calling.. only available in the newer iOS. This is so your app will run on a device that doesn't have the newer symbols. You must check to see that a newer method is available before calling it. You have to make sure not to call a method that is 5.0 or 4.X only when your app is on a 4.0 device. Of course you have to gracefully handle..
Check iPhone iOS Version http://stackoverflow.com/questions/3339722/check-iphone-ios-version the version string as an indication of device or OS capabilities. There is usually a more reliable method of checking whether a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString if NSClassFromString @ UIPopoverController Do something.. There is usually a more reliable method of checking whether a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString if NSClassFromString @ UIPopoverController Do something Some classes like CLLocationManager and UIDevice provide methods.. my recommendation can't be absolute A system version of 3.1 or greater is required to use CADisplayLink. The NSTimer class is used as fallback when it isn't available. NSString reqSysVer @ 3.1 NSString currSysVer UIDevice currentDevice systemVersion if currSysVer compare reqSysVer options NSNumericSearch NSOrderedAscending displayLinkSupported..
How do you use NSAttributedString? http://stackoverflow.com/questions/3482346/how-do-you-use-nsattributedstring or NSMutableStrings are not possible. So I've heard a little about the NSAttributedString which was introduced with the iPad SDK 3.2 or around 3.2 and is available on the iPhone as of iPhone SDK 4.0 beta . I would like to have a string that has three colours. The reason I don't use 3 separate NSStrings is because the length..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store program has the details but it involves adding UUIDs for each of the devices to your application package. UUIDs can be easiest retrieved using Ad Hoc Helper available from the App Store. For further details on this method see Craig Hockenberry's Beta testing on iPhone 2.0 article Jailbroken iPhone For jailbroken iPhones you can..
display image from URL retrieved from ALAsset in iPhone http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone working anyway. iOS 5 update When the result block fires seems to be a bit slower with iOS5 maybe single core devices so I couldnt rely on the image to be available directly after calling findLargeImage . So I changed it to call out to a delegate. @protocol HiresImageDelegate NSObject @optional void hiresImageAvailable UIImage..
How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll the filtered version of your FRC and you will see exceptions thrown about incorrect number of sections or rows in sections. Here is what I did I have two FRCs available as properties fetchedResultsController and searchFetchedResultsController. The searchFetchedResultsController should not be used unless there is a search when the..
How do I size a UITextView to its content? http://stackoverflow.com/questions/50467/how-do-i-size-a-uitextview-to-its-content . CGRect frame _textView.frame frame.size.height _textView.contentSize.height _textView.frame frame One thing to note is that the correct contentSize is only available after the UITextView has been added to the view with addSubview . Prior to that it is equal to frame.size This will not work if auto layout is ON. With auto layout..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers holder slide where the lecturer then apparently demonstrates the best practices using an example with the UIImagePickerController. I wish the videos were available Ok so... I'm afraid my objc fu is not so strong. I'm also a bit confused by the final line in the above quote. I've been doing my fair share of googling about this..
Objective C HTML escape/unescape http://stackoverflow.com/questions/659602/objective-c-html-escape-unescape escaping share improve this question This link contains the solution below. Cocoa CF has the CFXMLCreateStringByUnescapingEntities function but that's not available on the iPhone. @interface MREntitiesConverter NSObject NSMutableString resultString @property nonatomic retain NSMutableString resultString NSString convertEntiesInString..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now Now It has just come to light that the UIDevice uniqueIdentifier property is deprecated in iOS 5 and above. No alternative method or property appears to be available or forthcoming. Many of our existing apps are tightly dependent on this property for uniquely identifying a particular device. Can anyone suggest any ideas how..
Is there a barcode recognition framework for iOS? http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios ios cocoa touch barcode share improve this question Yes we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and the partial C port of the core library . The port is a little old from circa..
Reducing piracy of iPhone applications http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications to create a valid registration token that authorizes use of the application Likewise what code would I use to access that extra data What seem to be the best available technical approaches to this problem at the present time Please refrain from non programming answers about how piracy is inevitable etc. iphone piracy piracy prevention..
How do I record audio on iPhone with AVAudioRecorder? http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder UIAlertView cantRecordAlert UIAlertView alloc initWithTitle @ Warning message @ Audio input hardware not available delegate nil cancelButtonTitle @ OK otherButtonTitles nil cantRecordAlert show cantRecordAlert release return start..
Reading ePub format http://stackoverflow.com/questions/1388467/reading-epub-format ePub format I am trying to develop an iPhone application to read ePub files. Is there any framework available to develop this I have no idea about how to read this file format. I tried to parse a sample file with .epub extension using..
How to force NSLocalizedString to use a specific language http://stackoverflow.com/questions/1669645/how-to-force-nslocalizedstring-to-use-a-specific-language first one being the one set by the user for their phone and the subsequent ones used as fallbacks if a resource is not available in the preferred language. on the desktop the user can specify multiple languages with a custom ordering in System Preferences..
Programmatically get own phone number in iOS http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios an application's access to files preferences network resources hardware and so on. The device's phone number is not available within your application's container. You will need to revise your application to read only within your directory container..
How do I associate file types with an iPhone application? http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application of these documents to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you..
How To Make iPhone App compatible with multiple SDK (firmware) versions http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions Targets discusses Deployment vs Base SDK in detail. Weak link to the libraries frameworks with symbols that are only available in the newer iOS. This is so your app will run on a device that doesn't have the newer symbols. You must check to see that.. is so your app will run on a device that doesn't have the newer symbols. You must check to see that a newer method is available before calling it. You have to make sure not to call a method that is 5.0 or 4.X only when your app is on a 4.0 device...
Check iPhone iOS Version http://stackoverflow.com/questions/3339722/check-iphone-ios-version or OS capabilities. There is usually a more reliable method of checking whether a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString if NSClassFromString.. of checking whether a particular feature or class is available. For example you can check if UIPopoverController is available on the current device using NSClassFromString if NSClassFromString @ UIPopoverController Do something Some classes like.. system version of 3.1 or greater is required to use CADisplayLink. The NSTimer class is used as fallback when it isn't available. NSString reqSysVer @ 3.1 NSString currSysVer UIDevice currentDevice systemVersion if currSysVer compare reqSysVer options..
How do you use NSAttributedString? http://stackoverflow.com/questions/3482346/how-do-you-use-nsattributedstring So I've heard a little about the NSAttributedString which was introduced with the iPad SDK 3.2 or around 3.2 and is available on the iPhone as of iPhone SDK 4.0 beta . I would like to have a string that has three colours. The reason I don't use 3..
iPhone App Minus App Store? http://stackoverflow.com/questions/37464/iphone-app-minus-app-store adding UUIDs for each of the devices to your application package. UUIDs can be easiest retrieved using Ad Hoc Helper available from the App Store. For further details on this method see Craig Hockenberry's Beta testing on iPhone 2.0 article Jailbroken..
display image from URL retrieved from ALAsset in iPhone http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone result block fires seems to be a bit slower with iOS5 maybe single core devices so I couldnt rely on the image to be available directly after calling findLargeImage . So I changed it to call out to a delegate. @protocol HiresImageDelegate NSObject..
How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar http://stackoverflow.com/questions/4471289/how-to-filter-nsfetchedresultscontroller-coredata-with-uisearchdisplaycontroll will see exceptions thrown about incorrect number of sections or rows in sections. Here is what I did I have two FRCs available as properties fetchedResultsController and searchFetchedResultsController. The searchFetchedResultsController should not..
How do I size a UITextView to its content? http://stackoverflow.com/questions/50467/how-do-i-size-a-uitextview-to-its-content _textView.contentSize.height _textView.frame frame One thing to note is that the correct contentSize is only available after the UITextView has been added to the view with addSubview . Prior to that it is equal to frame.size This will not..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers apparently demonstrates the best practices using an example with the UIImagePickerController. I wish the videos were available Ok so... I'm afraid my objc fu is not so strong. I'm also a bit confused by the final line in the above quote. I've been..
Objective C HTML escape/unescape http://stackoverflow.com/questions/659602/objective-c-html-escape-unescape This link contains the solution below. Cocoa CF has the CFXMLCreateStringByUnescapingEntities function but that's not available on the iPhone. @interface MREntitiesConverter NSObject NSMutableString resultString @property nonatomic retain NSMutableString..
UIDevice uniqueIdentifier Deprecated - What To Do Now? http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now UIDevice uniqueIdentifier property is deprecated in iOS 5 and above. No alternative method or property appears to be available or forthcoming. Many of our existing apps are tightly dependent on this property for uniquely identifying a particular device...
Is there a barcode recognition framework for iOS? http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios this question Yes we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and the partial C port of the core library..
Reducing piracy of iPhone applications http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications authorizes use of the application Likewise what code would I use to access that extra data What seem to be the best available technical approaches to this problem at the present time Please refrain from non programming answers about how piracy is..
AVAudioPlayer turns off iPod - how to work around? http://stackoverflow.com/questions/1507541/avaudioplayer-turns-off-ipod-how-to-work-around
How do I change the Navigation Bar color in iOS 7? http://stackoverflow.com/questions/18929864/how-do-i-change-the-navigation-bar-color-in-ios-7 Discussion This color is made translucent by default unless you set the translucent property to NO . Availability Available in iOS 7.0 and later. Declared In UINavigationBar.h Code NSArray ver UIDevice currentDevice .systemVersion componentsSeparatedByString..
Available iPhone Web Application JavaScript UI Library/Frameworks http://stackoverflow.com/questions/215390/available-iphone-web-application-javascript-ui-library-frameworks iPhone Web Application JavaScript UI Library Frameworks I'm starting a web application that will target Mobile Safari on..
Select videos using UIImagePickerController in 2G/3G http://stackoverflow.com/questions/2758466/select-videos-using-uiimagepickercontroller-in-2g-3g recording video selecting photos and selecting videos Check if camera and video recording are available self setCameraAvailable NO self setVideoRecordingAvailable NO self setPhotoSelectionAvailable NO self setVideoSelectionAvailable NO For live mode.. selecting videos Check if camera and video recording are available self setCameraAvailable NO self setVideoRecordingAvailable NO self setPhotoSelectionAvailable NO self setVideoSelectionAvailable NO For live mode NSArray availableTypes UIImagePickerController.. and video recording are available self setCameraAvailable NO self setVideoRecordingAvailable NO self setPhotoSelectionAvailable NO self setVideoSelectionAvailable NO For live mode NSArray availableTypes UIImagePickerController availableMediaTypesForSourceType..
Available memory for iPhone OS app http://stackoverflow.com/questions/2798638/available-memory-for-iphone-os-app memory for iPhone OS app Is there a function or constant defining the amount of available memory for an app in iPhone OS..
How do I hide iAd banners when no ads are being served? http://stackoverflow.com/questions/3123259/how-do-i-hide-iad-banners-when-no-ads-are-being-served WorkingwithBannerViews.html Banner View Delegate to Remove a Banner View When Advertisements are Not Available void bannerView ADBannerView banner didFailToReceiveAdWithError NSError error if self.bannerIsVisible UIView beginAnimations..
NSDateFormatter's init method is deprecated? http://stackoverflow.com/questions/3182314/nsdateformatters-init-method-is-deprecated Reference Foundation Classes NSDateFormatter_Class Reference Reference.html The init method of NSDateFormatter is Available in iPhone OS 2.0 through iPhone OS 3.2 and therefore not in 4.0. Now it certainly works but this seems odd. Is this is a..
How to list only online users on facebook with xmpp framework http://stackoverflow.com/questions/5300912/how-to-list-only-online-users-on-facebook-with-xmpp-framework sectionInfo sections objectAtIndex sectionIndex int section sectionInfo.name intValue switch section case 0 return @ Available case 1 return @ Away default return @ Offline return @ NSInteger tableView UITableView tableView1 numberOfRowsInSection..
Objective-C code for AirPrint http://stackoverflow.com/questions/5690931/objective-c-code-for-airprint printing share improve this question Check whether printing is available if UIPrintInteractionController isPrintingAvailable Available else Not Available Print after button click IBAction buttonClicked id sender NSMutableString printBody NSMutableString.. share improve this question Check whether printing is available if UIPrintInteractionController isPrintingAvailable Available else Not Available Print after button click IBAction buttonClicked id sender NSMutableString printBody NSMutableString stringWithFormat.. question Check whether printing is available if UIPrintInteractionController isPrintingAvailable Available else Not Available Print after button click IBAction buttonClicked id sender NSMutableString printBody NSMutableString stringWithFormat @ @..
image clicked from iPhone in Portrait mode gets rotated by 90 degree http://stackoverflow.com/questions/5973105/image-clicked-from-iphone-in-portrait-mode-gets-rotated-by-90-degree indicated by that metadata. For a list of possible values for this property see œUIImageOrientation. Availability Available in iOS 2.0 and later. Declared In UIImage.h UIImage Class Reference UIImagePickerController Class Reference UIImagePickerControllerDelegate..
Why doesn't @contenteditable work on the iPhone? http://stackoverflow.com/questions/723592/why-doesnt-contenteditable-work-on-the-iphone Attributes says contenteditable If true the element can be edited on the fly if false it cannot. Availability Available in Safari 1.2 and later. Available in iPhone OS 1.0 and later. However on my iPhone I can't get it to work. Anyone have.. If true the element can be edited on the fly if false it cannot. Availability Available in Safari 1.2 and later. Available in iPhone OS 1.0 and later. However on my iPhone I can't get it to work. Anyone have success with this You can try it with..
How do you use setTitleTextAttributes:forState in UIBarItem in iOS 5.0? http://stackoverflow.com/questions/7810563/how-do-you-use-settitletextattributesforstate-in-uibaritem-in-ios-5-0 Additions Reference. state The control state for which you want to set the text attributes for the title. Availability Available in iOS 5.0 and later. iphone documentation ios5 share improve this question Example code UIBarItem appearance setTitleTextAttributes..
Easiest way to determine whether iPhone internet connection is available? http://stackoverflow.com/questions/784582/easiest-way-to-determine-whether-iphone-internet-connection-is-available NetworkStatus netStatus wifiReach currentReachabilityStatus switch netStatus case NotReachable NSLog @ Access Not Available break case ReachableViaWWAN NSLog @ Reachable WWAN break case ReachableViaWiFi NSLog @ Reachable WiFi break share improve..
Transfer files between 2 iPhones over wifi? http://stackoverflow.com/questions/8637598/transfer-files-between-2-iphones-over-wifi
How to get the active processes running in iOS http://stackoverflow.com/questions/9342578/how-to-get-the-active-processes-running-in-ios this question CPU usage was retrieved here iOS Get CPU usage from application RAM usage seems to be addressed here Available memory for iPhone OS app Edit Like EricS has pointed out in comments there seems to be a way to get background tasks Can..
|