iphone Programming Glossary: follow
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone although 10.5 has a man page for CCCryptor.3cc and 10.4 doesn't so YMMV. EDIT See this follow up question on using Base64 encoding for representing encrypted data bytes as a string if desired using..
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance I get asked is Does your application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption not an exception included in question 2 . Quote from FAQ on iTunes Connect How do I know if I can follow the Exporter Registration and Reporting ERN process If your app uses accesses implements or incorporates.. by owners and developers of the apps. You can answer œYES to the question if you meet any of the following criteria i if you determine that your app is not classified under Category 5 Part 2 of the EAR based..
What are the sizes used for the iOS application splash screen? http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen for iPad launch images. The screen size of the iPad is 768 1024 notice in the dimensions that follow the height takes into account a 20 pixel status bar. Filename Dimensions Default Portrait.png 768w x..
How to programmatically sense the iPhone mute switch? http://stackoverflow.com/questions/287543/how-to-programmatically-sense-the-iphone-mute-switch app plays background music it responds properly to the volume button without me having any code to follow that but when I use the mute switch it just keeps playing away. How do I test the position of mute NOTE..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c access the ivar with the same name as the 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..
How to build a framework or library for other developers, the secure way? http://stackoverflow.com/questions/4065052/how-to-build-a-framework-or-library-for-other-developers-the-secure-way
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide where the lecturer then apparently demonstrates the best.. I want to do this sort of thing the right way. Please help me do the right thing by answering the following questions When I am trying to push a new viewcontroller on the UINavigationController stack who should.. those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller will be modular and reusable. And if you think about..
Make movie file with picture Array and song file, using AVAsset http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset NSLog @ Write Ended After that you must put together movie file and audio file. To do this follow my code void CompileFilesToMakeMovie AVMutableComposition mixComposition AVMutableComposition composition..
Property vs instance variable in Objective-C [duplicate] http://stackoverflow.com/questions/6146244/property-vs-instance-variable-in-objective-c access the ivar with the same name as the 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..
How do I set up a simple delegate to communicate between two view controllers? http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers to the parent using a delegate. I know what delegates are and just wanted to see a simple to follow example. Thank You iphone ios delegates share improve this question Simple example... Let's say..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key of text use a UITextField . Hitting the return and hiding the keyboard for a UITextView does not follow the interface guidelines. Even then if you want to do this implement the textView shouldChangeTextInRange..
To ARC or not to ARC? What are the pros and cons? http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons put an id in a struct . This is fairly rare but sometimes it's used to pack data. If you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC..
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance into App Store submission I saw that the first question I get asked is Does your application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone else submitted an app using SSL for this..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption in terms of US BIS even if you just use HTTPS if your app is not an exception included in question 2 . Quote from FAQ on iTunes Connect How do I know if I can follow the Exporter Registration and Reporting ERN process If your app uses accesses implements or incorporates industry standard encryption algorithms for purposes other.. regulations or claiming exemption inaccurately are borne by owners and developers of the apps. You can answer œYES to the question if you meet any of the following criteria i if you determine that your app is not classified under Category 5 Part 2 of the EAR based on the guidance provided by BIS at encryption question ...
What are the sizes used for the iOS application splash screen? http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen orientation options a new naming convention has been created for iPad launch images. The screen size of the iPad is 768 1024 notice in the dimensions that follow the height takes into account a 20 pixel status bar. Filename Dimensions Default Portrait.png 768w x 1004h Default PortraitUpsideDown.png 768w x 1004h Default Landscape.png..
How to programmatically sense the iPhone mute switch? http://stackoverflow.com/questions/287543/how-to-programmatically-sense-the-iphone-mute-switch sense the mute button switch on the iPhone. When my app plays background music it responds properly to the volume button without me having any code to follow that but when I use the mute switch it just keeps playing away. How do I test the position of mute NOTE My program has its own mute switch but I'd like the physical..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c that by default synthesized accessors for a property will access the ivar with the same name as the 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..
How to build a framework or library for other developers, the secure way? http://stackoverflow.com/questions/4065052/how-to-build-a-framework-or-library-for-other-developers-the-secure-way
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers your view controller For communicating back up the hierarchy use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide where the lecturer then apparently demonstrates the best practices using an example with the UIImagePickerController... the multiple viewcontroller instances in my appdelegate but I want to do this sort of thing the right way. Please help me do the right thing by answering the following questions When I am trying to push a new viewcontroller on the UINavigationController stack who should be doing this push. Which class file in my code is the.. reference a global variable . Instead you should always inject those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller will be modular and reusable. And if you think about where the Stanford presenters are coming from i.e. as Apple..
Make movie file with picture Array and song file, using AVAsset http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset release videoWriter release m_PictArray removeAllObjects NSLog @ Write Ended After that you must put together movie file and audio file. To do this follow my code void CompileFilesToMakeMovie AVMutableComposition mixComposition AVMutableComposition composition NSString audio_inputFileName @ deformed.caf NSString audio_inputFilePath..
Property vs instance variable in Objective-C [duplicate] http://stackoverflow.com/questions/6146244/property-vs-instance-variable-in-objective-c that by default synthesized accessors for a property will access the ivar with the same name as the 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..
How do I set up a simple delegate to communicate between two view controllers? http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers and need to pass the value from the child view controller to the parent using a delegate. I know what delegates are and just wanted to see a simple to follow example. Thank You iphone ios delegates share improve this question Simple example... Let's say the child view controller has a UISlider and we want to pass..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key key. If you want the user to be able to add only one line of text use a UITextField . Hitting the return and hiding the keyboard for a UITextView does not follow the interface guidelines. Even then if you want to do this implement the textView shouldChangeTextInRange replacementText method of UITextViewDelegate and in that..
To ARC or not to ARC? What are the pros and cons? http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons You shouldn't have much of this in any case. You cannot put an id in a struct . This is fairly rare but sometimes it's used to pack data. If you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC naming to make decisions about memory management. If it's all..
AES Encryption for an NSString on the iPhone http://stackoverflow.com/questions/1400246/aes-encryption-for-an-nsstring-on-the-iphone have usr include CommonCrypto although 10.5 has a man page for CCCryptor.3cc and 10.4 doesn't so YMMV. EDIT See this follow up question on using Base64 encoding for representing encrypted data bytes as a string if desired using safe lossless conversions...
Using SSL in an iPhone App - Export Compliance http://stackoverflow.com/questions/2128927/using-ssl-in-an-iphone-app-export-compliance the first question I get asked is Does your application use encryption and depending on the answer to this and other follow up questions may require US export compliance. My company is not based in the US nor do we have a US office. Has anyone..
Does my application “contain encryption”? http://stackoverflow.com/questions/2135081/does-my-application-contain-encryption HTTPS if your app is not an exception included in question 2 . Quote from FAQ on iTunes Connect How do I know if I can follow the Exporter Registration and Reporting ERN process If your app uses accesses implements or incorporates industry standard.. inaccurately are borne by owners and developers of the apps. You can answer œYES to the question if you meet any of the following criteria i if you determine that your app is not classified under Category 5 Part 2 of the EAR based on the guidance..
@property and retain, assign, copy, nonatomic in Objective-C http://stackoverflow.com/questions/2255861/property-and-retain-assign-copy-nonatomic-in-objective-c that's new to Objective C can someone give me an overview of the retain assign copy and any others I'm missing that follow the @property directive What are they doing and why would I want to use one over another iphone objective c memory management..
iPhone: How to Pass Data Between Several Viewcontrollers in a Tabbar App http://stackoverflow.com/questions/2363777/iphone-how-to-pass-data-between-several-viewcontrollers-in-a-tabbar-app How to Pass Data Between Several Viewcontrollers in a Tabbar App I have following problem I have built a tabbar application with 4 tabs. I want to pass a object variable from the first tab controller.. simply create some Kind of data class which holds the data beeing shared between several classes. For more information follow the link Singleton iphone objective c uiviewcontroller uitabbarcontroller share improve this question You need a data..
What are the sizes used for the iOS application splash screen? http://stackoverflow.com/questions/2634898/what-are-the-sizes-used-for-the-ios-application-splash-screen has been created for iPad launch images. The screen size of the iPad is 768 1024 notice in the dimensions that follow the height takes into account a 20 pixel status bar. Filename Dimensions Default Portrait.png 768w x 1004h Default PortraitUpsideDown.png..
SEL performSelector and arguments http://stackoverflow.com/questions/2716143/sel-performselector-and-arguments automatically set by NSInvocation inv invoke On a side note your method looks like an init method but does not follow the correct initializer pattern for Objective C. You need to call the super classes initializer and you need to test for..
Tips for a successful AppStore submission? [closed] http://stackoverflow.com/questions/28551/tips-for-a-successful-appstore-submission called Beer in English it could display as Birra in Italian and Bier in German. The mechanical stuff as long as you follow the instructions is actually fairly straight forward. I found the key is being prepared. You basically get no notice before..
How to programmatically sense the iPhone mute switch? http://stackoverflow.com/questions/287543/how-to-programmatically-sense-the-iphone-mute-switch the iPhone. When my app plays background music it responds properly to the volume button without me having any code to follow that but when I use the mute switch it just keeps playing away. How do I test the position of mute NOTE My program has its..
What are block-based animation methods in iPhone OS 4.0? http://stackoverflow.com/questions/3126833/what-are-block-based-animation-methods-in-iphone-os-4-0 were used to create animation blocks.. iphone ios4 uiview core animation share improve this question If you follow that link and scroll up a bit you will see animate methods new to ios4. animateWithDuration animations animateWithDuration..
Adjusting the volume of a playing AVPlayer http://stackoverflow.com/questions/3268949/adjusting-the-volume-of-a-playing-avplayer volume of a playing AVPlayer The only method for getting a volume change on currently playing AVPlayer items is to follow this process Offload the currently playing AVPlayerItem's asset Grab the current playback time for that AVPlayerItem Load.. is called asset your instance of AVPlayerItem is called playerItem and the volume you want to set is called volume the following code should do what you want NSArray audioTracks asset tracksWithMediaType AVMediaTypeAudio NSMutableArray allAudioParams..
Prefixing property names with an underscore in Objective C [duplicate] http://stackoverflow.com/questions/3521254/prefixing-property-names-with-an-underscore-in-objective-c for a property will access the ivar with the same name as the 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..
How to build a framework or library for other developers, the secure way? http://stackoverflow.com/questions/4065052/how-to-build-a-framework-or-library-for-other-developers-the-secure-way
How to create custom easing function with Core Animation? http://stackoverflow.com/questions/5161465/how-to-create-custom-easing-function-with-core-animation a to b but I want it to bounce its movement along the line using the easeOutBounce curve above. This means it will follow the exact line from a to b but will accelerate and decelerate in a more complex way than what is possible using the current..
What's the best way to communicate between view controllers? http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers back up the hierarchy use loose coupling Define a generic interface for observers like delegation This slide is then followed by what appears to be a place holder slide where the lecturer then apparently demonstrates the best practices using an.. my appdelegate but I want to do this sort of thing the right way. Please help me do the right thing by answering the following questions When I am trying to push a new viewcontroller on the UINavigationController stack who should be doing this.. you should always inject those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller will be modular and reusable. And if you think about where the Stanford..
Make movie file with picture Array and song file, using AVAsset http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset removeAllObjects NSLog @ Write Ended After that you must put together movie file and audio file. To do this follow my code void CompileFilesToMakeMovie AVMutableComposition mixComposition AVMutableComposition composition NSString audio_inputFileName..
Property vs instance variable in Objective-C [duplicate] http://stackoverflow.com/questions/6146244/property-vs-instance-variable-in-objective-c for a property will access the ivar with the same name as the 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..
How do I set up a simple delegate to communicate between two view controllers? http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers the child view controller to the parent using a delegate. I know what delegates are and just wanted to see a simple to follow example. Thank You iphone ios delegates share improve this question Simple example... Let's say the child view controller..
How to dismiss keyboard for UITextView with return key? http://stackoverflow.com/questions/703754/how-to-dismiss-keyboard-for-uitextview-with-return-key to add only one line of text use a UITextField . Hitting the return and hiding the keyboard for a UITextView does not follow the interface guidelines. Even then if you want to do this implement the textView shouldChangeTextInRange replacementText..
To ARC or not to ARC? What are the pros and cons? http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons any case. You cannot put an id in a struct . This is fairly rare but sometimes it's used to pack data. If you did not follow correct KVC naming and you intermix ARC and non ARC code you will have memory problems. ARC uses KVC naming to make decisions..
Xcode - update ViewController label text from different view http://stackoverflow.com/questions/10052594/xcode-update-viewcontroller-label-text-from-different-view code Thank you iphone objective c uilabel share improve this question You have to implement protocols for that. Follow this 1 In SettingView.h define protocol like this @protocol ViewControllerDelegate void updateLabel @end 2 Define property..
Optimizing CLLocationManager/CoreLocation to retrieve data points faster on the iPhone http://stackoverflow.com/questions/1081219/optimizing-cllocationmanager-corelocation-to-retrieve-data-points-faster-on-the update. 2 Be extremely careful how you update the locationManager.desiredAccuracy and locationManager.distanceFilter Follow the example in Apple's code for this in the FlipsideViewController MyCLController sharedInstance .locationManager.desiredAccuracy..
How would I tint an image programatically on the iPhone? http://stackoverflow.com/questions/1117211/how-would-i-tint-an-image-programatically-on-the-iphone blending mode in Photoshop where whites would be replaced with tint I will be changing the color value continuously. Follow up I would put the code to do this in my ImageView's drawRect method right As always a code snippet would greatly aid in..
Tabbar in Second View http://stackoverflow.com/questions/13856933/tabbar-in-second-view
libxml/tree.h no such file or directory http://stackoverflow.com/questions/1428847/libxml-tree-h-no-such-file-or-directory getting this type of trouble. Please help me. iphone objective c xcode libxml2 libxml share improve this question Follow the directions here under Setting up your project file. Setting up your project file You need to add libxml2.dylib to your..
NSDateFormatter, am I doing something wrong or is this a bug? http://stackoverflow.com/questions/143075/nsdateformatter-am-i-doing-something-wrong-or-is-this-a-bug do NSLog @ @ dateStr Are you doing anything else with dateStr that you didn't post here How are you checking the value Follow up Try turning the am pm setting on then off. I didn't have the problem either until I did that. I am printing it out the..
How to use custom fonts in iPhone SDK? [duplicate] http://stackoverflow.com/questions/14376941/how-to-use-custom-fonts-in-iphone-sdk
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 as described below. Assuming you are in the Apple Developer Program you received an Email entitled WWDC for everyone. Follow the links in that Email until you get to iTunes University. Then follow the link for frameworks and pick session 112. I..
Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk through the app store is deprecated. See the Readiness Checklist quote above. Base SDK location for Xcode 4 and above Follow the steps above but for Step #2 click the following Select the Project navigator using folder icon on the left of the navigator..
Is it just the iPhone simulator that is restricted to Intel only Mac's? http://stackoverflow.com/questions/37822/is-it-just-the-iphone-simulator-that-is-restricted-to-intel-only-macs
Difference between self.ivar and ivar? http://stackoverflow.com/questions/4142177/difference-between-self-ivar-and-ivar as an example. Could someone please explain the difference between name @ hello and self.name @ hello Thanks EDIT Follow up question How to write my own setter for an ivar i.e. self.ivar ... iphone objective c ios share improve this question..
iPhone Development Environment (from scratch) http://stackoverflow.com/questions/414636/iphone-development-environment-from-scratch comes on your OS install disks but it will be an old version and won't have the iPhone libraries. Learn objective C . Follow some iPhone specific tutorials or Stanford's online iPhone class . sarcasm Read more in this Guardian article about how..
What are the Dangers of Method Swizzling in Objective C? http://stackoverflow.com/questions/5339276/what-are-the-dangers-of-method-swizzling-in-objective-c impact the swizzling is having. Document your code well even if you think you're the only one who will ever see it . Follow good practices and you'll be alright. It's not harder to debug than multi threaded code. Conclusion Method swizzling is..
xcode cannot find the software image to install this version http://stackoverflow.com/questions/5885859/xcode-cannot-find-the-software-image-to-install-this-version in the new Xcode you need to frig around with armv6 armv7 settings if you want to support earlier models of iPhone. Follow these instructions to add the right Architecture armv6 setting . Additionally I would point out as per this answer further..
UIDatePicker in UIActionSheet on iPad http://stackoverflow.com/questions/5941583/uidatepicker-in-uiactionsheet-on-ipad datePickerView.datePickerMode UIDatePickerModeDate self.dateActionSheet UIActionSheet alloc initWithTitle @ Choose a Follow up Date delegate self cancelButtonTitle nil destructiveButtonTitle nil otherButtonTitles @ Done nil self.dateActionSheet..
Transferring ownership of an iPhone app on the app store http://stackoverflow.com/questions/671382/transferring-ownership-of-an-iphone-app-on-the-app-store by the new owner without having to re buy re download the app iphone app store share improve this question Follow Up After all it is possible as of late March 2010 . I haven't read all comments or other threads about this issue so this..
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 easy way to determine network availability on the iPhone Thanks Ben iphone iphone web share improve this question Follow following 3 easy steps Step 1 Include SystemConfiguration.framework framework in your project Step 2 Included Apple's Reachability.h..
iPhone - how to change the build configuration to distribution http://stackoverflow.com/questions/8804248/iphone-how-to-change-the-build-configuration-to-distribution the help nothing is working. iphone objective c ios configuration ad hoc distribution share improve this question Follow these steps in Xcode 4 1.Click on the red area 2.Click here 3.And choose required configuration If you don't have Distribution..
How to write exif metadata to an image (not the camera roll, just a UIImage or JPEG) http://stackoverflow.com/questions/9006759/how-to-write-exif-metadata-to-an-image-not-the-camera-roll-just-a-uiimage-or-j information it is stripped . So if you want to save it without using the imagepicker method not in camera roll Follow the answer here to write to a file with the metadata intact Problem setting exif data for an image no idea why would this..
|