¡@

Home 

2014/10/15 ¤U¤È 10:14:44

iphone Programming Glossary: target

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

stopButton UIBarButtonItem alloc initWithTitle @ Stop style UIBarButtonItemStyleBordered target self action @selector stopRecording self.navigationItem.rightBarButtonItem stopButton stopButton release.. startButton UIBarButtonItem alloc initWithTitle @ Record style UIBarButtonItemStyleBordered target self action @selector startRecording self.navigationItem.rightBarButtonItem startButton startButton..

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

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

no backward compatibility here You could also select this image from within Xcode. Go to the target and under the Summary section look for Launch Images. The image has to be 640x1136 pixels in size. Here's..

How to Rotate a UIImage 90 degrees?

http://stackoverflow.com/questions/1315251/how-to-rotate-a-uiimage-90-degrees

I am using a block of code shown below originally intended to resize a UIImage to do this. I set a target size as the current size of the UIImage but I get an error Error CGBitmapContextCreate invalid data.. kCGImageAlphaPremultipliedLast. I don't get an error whenever I provide a SMALLER size as the target size BTW . Can any of you show me how to just ROTATE my UIImage 90 degrees CCW using just core graphics.. graphics functions while preserving the current size UIImage reverseImageByScalingToSize CGSize targetSize UIImage anImage UIImage sourceImage anImage CGFloat targetWidth targetSize.height CGFloat targetHeight..

Cropping a UIImage

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

is on base. Theory 1 I achieve the cropping by drawing into an offscreen image context of my target size. Since I want the center portion of the image I set the CGRect argument passed to drawInRect to..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

library to iphone project. I use staic library project added to app project as direct dependency target general direct dependecies and all works OK but categories. A category defined in static library is.. the library not the library itself and click the project in the Project Navigator click your app's target then build settings then search for Other Linker Flags click the button and add ' ObjC'. ' all_load'.. library. Note all_load forces all members of all archives to be loaded. This option allows you to target a specific archive. we can use force_load to reduce app binary size and to avoid conflicts wich all_load..

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

of required device capabilities. See these SO questions and answers for more details deployment target vs base active sdk recommended way to support backward compatibility How do you optionally use iPhone..

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

be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use the 3.2 SDK. That is why.. was previously mapped to is deprecated gones ville. But 3 is a magic number Relax. You can still target devices running iPhone OS 3.0 but not lower . The SDK you use to compile does not limit downward what.. choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want to target previous iOS versions then in that same window under Deployment iPhone OS Deployment Target select the..

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

doing what he's done it simply will not work due to the Documented change in how Xcode processes targets Another SO questioner asked how to do it WITHOUT xcode and with responses that focussed on the arm6.. SDK_VERSION fi echo XCode has selected SDK PLATFORM_NAME with version SDK_VERSION although back targetting IPHONEOS_DEPLOYMENT_TARGET echo ...therefore OTHER_SDK_TO_BUILD OTHER_SDK_TO_BUILD # #####################.. original invocation invoke WHATEVER other builds are required # # Xcode is already building ONE target... # # ...but this is a LIBRARY so Apple is wrong to set it to build just one. # ...we need to build..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

CVPixelBufferUnlockBaseAddress pxbuffer 0 return pxbuffer frameSize is a CGSize describing your target frame size and frameTransform is a CGAffineTransform that lets you transform the images when you draw..

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

openssh and uikittools to be installed first. Replace jasoniphone.local with the hostname of the target device. Be sure to set your own password on both the mobile and root users after installing SSH. To..

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

here Understanding the PDF Rect for link positioning Converting PDF annot datestrings Getting the target of the link Getting the page number from the Dest array Getting a table of contents Document title and..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section..

“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

Base SDK Latest iOS currently set to iOS 4.2 Valid Architectures armv6 armv7 I have cleaned all targets. I appreciate any tips. iphone ios xcode share improve this question If using Xcode 4.2 or higher.. in the bottom left of the popover and type 'armv7' then click Done Update you should add armv7s to target the iPhone 5 as well. And drop armv6 if building with Xcode 4.5 or higher which no longer supports armv6...

Create singleton using GCD's dispatch_once in Objective C

http://stackoverflow.com/questions/5720029/create-singleton-using-gcds-dispatch-once-in-objective-c

singleton using GCD's dispatch_once in Objective C If you can target iOS 4.0 or above Using GCD is it the best way to create singleton in Objective C thread safe id sharedInstance..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

Click on arrow at lib project icon mylib.a file name shown drag this mylib.a file and drop it into Target Link Binary With Library group. Open target info in fist page General and add my lib to dependencies..

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

ie 5.1 and still run on devices with earlier versions of the firmware SDK . Set your Deployment Target to the earliest version you want to be able to run with ie 3.0. You set your Base SDK to the latest.. you can reference the newer definitions and symbols in your code. This article SDK and Deployment Targets discusses Deployment vs Base SDK in detail. Weak link to the libraries frameworks with symbols that..

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

you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment Target to a lower iOS version. For a quick shot of how to do this cf. step 7 in the next section. Note that.. are iPhone only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone.. only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone..

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

PUBLIC_HEADERS_FOLDER_PATH fi fi INSTALL INSTRUCTIONS Create a static lib project Select the Target In Build Settings tab set Build Active Architecture Only to NO for all items In Build Phases tab select.. Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes all output after 200 lines. Select your Target and in the Run Script Phase you MUST untick Show environment variables in build log if you're using.. Developer Xcode DerivedData AppName ashwnbutvodmoleijzlncudsekyf Build Products Debug universal libTargetName.a ...that is the location of your Universal Build. How to include non sourcecode files in your project..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

. Click the button Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build ... it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution.. . Set the value of Code Signing Identity Any iPhone OS Device to iPhone Distribution . Close the Target Info pane. In the main window select the Active Configuration to Distribution . Create a new file from..

“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

Xcode 4.2 or higher try the following Click your Project name in the left column followed by the Target Click the 'Build Settings' tab in the right column Click the 'Release' or 'Distribution' row under 'Architectures'..

How do I manage building a Lite vs Paid version of an iPhone app?

http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app

this question Xcode has good support for multiple targets. From the project menu select New Target... . Add another iPhone executable Cocoa Touch Application you can then specify on a resouce by resource.. in the current target by right clicking on the Groups and Files list header top lhs and enabling Target Membership. You switch between building different targets in the same way as you switch between building.. for their respective target or you can set a build time flag for the pre processor. Select the Target in the Groups and Files list then get info on that target. Go to the build tab and search for preprocess..

UIImage: Resize, then Crop

http://stackoverflow.com/questions/603907/uiimage-resize-then-crop

noticed any deficiencies in portrait mode. Here's my code it's part of a categeory on UIImage. Target size in my code is always set to the full screen size of the device. @implementation UIImage Extras..

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

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

What you have to do is add armv6 in the Architectures field under Build Settings for both your Target and your Project. Then your app will be able to run on iPhone 3G devices. Answer can be found here How.. 4.2 project running on an iPhone 3G 4.2.1. Here is how I was able to get it to run. 1 Change the Target's Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's.. Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's Build Settings Valid Architecture to armv6 and armv7. 3 Change the Target's Build Settings iOS Deployment..

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

@ Documents void startRecording UIBarButtonItem stopButton UIBarButtonItem alloc initWithTitle @ Stop style UIBarButtonItemStyleBordered target self action @selector stopRecording self.navigationItem.rightBarButtonItem stopButton stopButton release AVAudioSession audioSession AVAudioSession sharedInstance.. @ d @ err domain err code err userInfo description UIBarButtonItem startButton UIBarButtonItem alloc initWithTitle @ Record style UIBarButtonItemStyleBordered target self action @selector startRecording self.navigationItem.rightBarButtonItem startButton startButton release void audioRecorderDidFinishRecording AVAudioRecorder..

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

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

Default 568h@2x.png . And it has to be retina quality there's no backward compatibility here You could also select this image from within Xcode. Go to the target and under the Summary section look for Launch Images. The image has to be 640x1136 pixels in size. Here's a screenshot of where to find it if that helps. share..

How to Rotate a UIImage 90 degrees?

http://stackoverflow.com/questions/1315251/how-to-rotate-a-uiimage-90-degrees

want the pixels of the UIImage to actually shift position. I am using a block of code shown below originally intended to resize a UIImage to do this. I set a target size as the current size of the UIImage but I get an error Error CGBitmapContextCreate invalid data bytes row should be at least 1708 for 8 integer bits component.. be at least 1708 for 8 integer bits component 3 components kCGImageAlphaPremultipliedLast. I don't get an error whenever I provide a SMALLER size as the target size BTW . Can any of you show me how to just ROTATE my UIImage 90 degrees CCW using just core graphics functions while preserving the current size UIImage reverseImageByScalingToSize.. how to just ROTATE my UIImage 90 degrees CCW using just core graphics functions while preserving the current size UIImage reverseImageByScalingToSize CGSize targetSize UIImage anImage UIImage sourceImage anImage CGFloat targetWidth targetSize.height CGFloat targetHeight targetSize.width CGImageRef imageRef sourceImage CGImage..

Cropping a UIImage

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

I've got two different theories and I'm wondering if either is on base. Theory 1 I achieve the cropping by drawing into an offscreen image context of my target size. Since I want the center portion of the image I set the CGRect argument passed to drawInRect to something that's larger than the bounds of my image context...

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

static library Can you guide me how to properly link static library to iphone project. I use staic library project added to app project as direct dependency target general direct dependecies and all works OK but categories. A category defined in static library is not working in app. So my question is how to add static library.. only need to go to the application that is linking against the library not the library itself and click the project in the Project Navigator click your app's target then build settings then search for Other Linker Flags click the button and add ' ObjC'. ' all_load' and ' force_load' are no longer needed. Details I found some.. Loads all members of the specified static archive library. Note all_load forces all members of all archives to be loaded. This option allows you to target a specific archive. we can use force_load to reduce app binary size and to avoid conflicts wich all_load can cause in some cases. Yes it works with .a files added..

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

to the build architectures and remove armv7 from the plist of required device capabilities. See these SO questions and answers for more details deployment target vs base active sdk recommended way to support backward compatibility How do you optionally use iPhone 3.0 features in a 2.0 compatible app iPhone dev weak link..

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

All new applications and updates to existing applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use the 3.2 SDK. That is why 4.0 3.2 are your only choices for SDKs. That is also why.. That is also why your project is now broken since the SDK it was previously mapped to is deprecated gones ville. But 3 is a magic number Relax. You can still target devices running iPhone OS 3.0 but not lower . The SDK you use to compile does not limit downward what iOS version you can program to or support. Once you've patched.. Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want to target previous iOS versions then in that same window under Deployment iPhone OS Deployment Target select the lowest version you want to support. Note that support for..

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

of guesstimating them Apple's latest Xcode prevents you from doing what he's done it simply will not work due to the Documented change in how Xcode processes targets Another SO questioner asked how to do it WITHOUT xcode and with responses that focussed on the arm6 vs arm7 part but ignored the i386 part http stackoverflow.com.. iphoneos SDK_VERSION else OTHER_SDK_TO_BUILD iphonesimulator SDK_VERSION fi echo XCode has selected SDK PLATFORM_NAME with version SDK_VERSION although back targetting IPHONEOS_DEPLOYMENT_TARGET echo ...therefore OTHER_SDK_TO_BUILD OTHER_SDK_TO_BUILD # ##################### end of part 1 ################## #####################.. part 2 ################## # # IF this is the original invocation invoke WHATEVER other builds are required # # Xcode is already building ONE target... # # ...but this is a LIBRARY so Apple is wrong to set it to build just one. # ...we need to build ALL targets # ...we MUST NOT re build the target that is ALREADY..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

Manual Deployment over WiFi The following steps require openssh and uikittools to be installed first. Replace jasoniphone.local with the hostname of the target device. Be sure to set your own password on both the mobile and root users after installing SSH. To manually compile and install your application on the phone as..

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

Other PDF Features Getting Links inside a PDF and here and here Understanding the PDF Rect for link positioning Converting PDF annot datestrings Getting the target of the link Getting the page number from the Dest array Getting a table of contents Document title and Keywords Getting Raw Text and here and Here and here positioning..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

. Click the button Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section Code Signing . Set the value of Code Signing Identity Any..

“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

had things set correctly Architectures is Standard armv6 armv7 Base SDK Latest iOS currently set to iOS 4.2 Valid Architectures armv6 armv7 I have cleaned all targets. I appreciate any tips. iphone ios xcode share improve this question If using Xcode 4.2 or higher try the following Click your Project name in the left column.. by typing 'armv6'. Then add a new row with the plus button in the bottom left of the popover and type 'armv7' then click Done Update you should add armv7s to target the iPhone 5 as well. And drop armv6 if building with Xcode 4.5 or higher which no longer supports armv6. That's it. You should now be able to build archive without..

Create singleton using GCD's dispatch_once in Objective C

http://stackoverflow.com/questions/5720029/create-singleton-using-gcds-dispatch-once-in-objective-c

singleton using GCD's dispatch_once in Objective C If you can target iOS 4.0 or above Using GCD is it the best way to create singleton in Objective C thread safe id sharedInstance static dispatch_once_t once static id sharedInstance..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

file in app project or add it with Project Add to project . Click on arrow at lib project icon mylib.a file name shown drag this mylib.a file and drop it into Target Link Binary With Library group. Open target info in fist page General and add my lib to dependencies list after that all works OK. ObjC flag was enough in my case...

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

improve this question Yes you can build with the latest SDK ie 5.1 and still run on devices with earlier versions of the firmware SDK . Set your Deployment Target to the earliest version you want to be able to run with ie 3.0. You set your Base SDK to the latest version that you are compiling with ie 5.0. This way you can.. latest version that you are compiling with ie 5.0. This way you can reference the newer definitions and symbols in your 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..

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

downward what iOS version you can program to or support. Once you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment Target to a lower iOS version. For a quick shot of how to do this cf. step 7 in the next section. Note that you are now entering some tricky terrain. Your usual Xcode.. available device options iPhone 3.2 or iPhone 4.0. If you are iPhone only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want to target previous iOS versions.. device options iPhone 3.2 or iPhone 4.0. If you are iPhone only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want to target previous iOS versions then in..

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

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

PUBLIC_HEADERS_FOLDER_PATH CREATING_UNIVERSAL_DIR PUBLIC_HEADERS_FOLDER_PATH fi fi INSTALL INSTRUCTIONS Create a static lib project Select the Target In Build Settings tab set Build Active Architecture Only to NO for all items In Build Phases tab select Add ... New Build Phase ... New Run Script Build Phase Copy.. following code to the very end of the script courtesy of Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes all output after 200 lines. Select your Target and in the Run Script Phase you MUST untick Show environment variables in build log if you're using a custom build output directory for XCode4 then XCode puts all.. configuration Debug creating output file Users blah Library Developer Xcode DerivedData AppName ashwnbutvodmoleijzlncudsekyf Build Products Debug universal libTargetName.a ...that is the location of your Universal Build. How to include non sourcecode files in your project PNG PLIST XML etc Do everything above check it works..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

. Go to the tab Configuration . Select the configuration Release . Click the button Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section.. configuration Release . Click the button Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section Code Signing . Set the value of Code.. named Distribution . Find the section Code Signing . Set the value of Code Signing Identity Any iPhone OS Device to iPhone Distribution . Close the Target Info pane. In the main window select the Active Configuration to Distribution . Create a new file from the file template Code Signing Entitlements . Name it Entitlements.plist..

“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

iphone ios xcode share improve this question If using Xcode 4.2 or higher try the following Click your Project name in the left column followed by the Target Click the 'Build Settings' tab in the right column Click the 'Release' or 'Distribution' row under 'Architectures' and choose 'Other...' Double click the highlighted..

How do I manage building a Lite vs Paid version of an iPhone app?

http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app

Thanks Brad. iphone build freeware targets share improve this question Xcode has good support for multiple targets. From the project menu select New Target... . Add another iPhone executable Cocoa Touch Application you can then specify on a resouce by resource basis which items are included in your target. This can.. can get quick visual feedback on what is and is not included in the current target by right clicking on the Groups and Files list header top lhs and enabling Target Membership. You switch between building different targets in the same way as you switch between building for Simulator or iPhone. To specify at build time how a.. things include two versions of the class which are each built for their respective target or you can set a build time flag for the pre processor. Select the Target in the Groups and Files list then get info on that target. Go to the build tab and search for preprocess . You should see a n item called Preprocessor Macros add..

UIImage: Resize, then Crop

http://stackoverflow.com/questions/603907/uiimage-resize-then-crop

rest to the width. I'm working in landscape so might not have noticed any deficiencies in portrait mode. Here's my code it's part of a categeory on UIImage. Target size in my code is always set to the full screen size of the device. @implementation UIImage Extras #pragma mark #pragma mark Scale and crop image UIImage imageByScalingAndCroppingForSize..

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

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

it looks like iOS SDK 5 dropped support for armv6 by default. What you have to do is add armv6 in the Architectures field under Build Settings for both your Target and your Project. Then your app will be able to run on iPhone 3G devices. Answer can be found here How to build for armv6 and armv7 architectures with iOS 5 iphone.. was having the same issue trying to get a newly created Xcode 4.2 project running on an iPhone 3G 4.2.1. Here is how I was able to get it to run. 1 Change the Target's Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's Build Settings Valid Architecture to armv6 and armv7. 3.. Here is how I was able to get it to run. 1 Change the Target's Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's Build Settings Valid Architecture to armv6 and armv7. 3 Change the Target's Build Settings iOS Deployment Target to iOS 4.2. 4 Open the projects Info.plist remove..

How do I record audio on iPhone with AVAudioRecorder?

http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder

UIBarButtonItem stopButton UIBarButtonItem alloc initWithTitle @ Stop style UIBarButtonItemStyleBordered target self action @selector stopRecording self.navigationItem.rightBarButtonItem stopButton stopButton release AVAudioSession.. UIBarButtonItem startButton UIBarButtonItem alloc initWithTitle @ Record style UIBarButtonItemStyleBordered target self action @selector startRecording self.navigationItem.rightBarButtonItem startButton startButton release void audioRecorderDidFinishRecording..

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

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

be retina quality there's no backward compatibility here You could also select this image from within Xcode. Go to the target and under the Summary section look for Launch Images. The image has to be 640x1136 pixels in size. Here's a screenshot of..

How to Rotate a UIImage 90 degrees?

http://stackoverflow.com/questions/1315251/how-to-rotate-a-uiimage-90-degrees

shift position. I am using a block of code shown below originally intended to resize a UIImage to do this. I set a target size as the current size of the UIImage but I get an error Error CGBitmapContextCreate invalid data bytes row should be.. component 3 components kCGImageAlphaPremultipliedLast. I don't get an error whenever I provide a SMALLER size as the target size BTW . Can any of you show me how to just ROTATE my UIImage 90 degrees CCW using just core graphics functions while.. CCW using just core graphics functions while preserving the current size UIImage reverseImageByScalingToSize CGSize targetSize UIImage anImage UIImage sourceImage anImage CGFloat targetWidth targetSize.height CGFloat targetHeight targetSize.width..

Cropping a UIImage

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

I'm wondering if either is on base. Theory 1 I achieve the cropping by drawing into an offscreen image context of my target size. Since I want the center portion of the image I set the CGRect argument passed to drawInRect to something that's larger..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

properly link static library to iphone project. I use staic library project added to app project as direct dependency target general direct dependecies and all works OK but categories. A category defined in static library is not working in app... is linking against the library not the library itself and click the project in the Project Navigator click your app's target then build settings then search for Other Linker Flags click the button and add ' ObjC'. ' all_load' and ' force_load' are.. static archive library. Note all_load forces all members of all archives to be loaded. This option allows you to target a specific archive. we can use force_load to reduce app binary size and to avoid conflicts wich all_load can cause in some..

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

armv7 from the plist of required device capabilities. See these SO questions and answers for more details deployment target vs base active sdk recommended way to support backward compatibility How do you optionally use iPhone 3.0 features in a..

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

applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use the 3.2 SDK. That is why 4.0 3.2 are your.. since the SDK it was previously mapped to is deprecated gones ville. But 3 is a magic number Relax. You can still target devices running iPhone OS 3.0 but not lower . The SDK you use to compile does not limit downward what iOS version you can.. Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want to target previous iOS versions then in that same window under Deployment iPhone OS Deployment Target select the lowest version you..

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

prevents you from doing what he's done it simply will not work due to the Documented change in how Xcode processes targets Another SO questioner asked how to do it WITHOUT xcode and with responses that focussed on the arm6 vs arm7 part but ignored.. iphonesimulator SDK_VERSION fi echo XCode has selected SDK PLATFORM_NAME with version SDK_VERSION although back targetting IPHONEOS_DEPLOYMENT_TARGET echo ...therefore OTHER_SDK_TO_BUILD OTHER_SDK_TO_BUILD # ##################### end of part.. # # IF this is the original invocation invoke WHATEVER other builds are required # # Xcode is already building ONE target... # # ...but this is a LIBRARY so Apple is wrong to set it to build just one. # ...we need to build ALL targets # ...we..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

context CVPixelBufferUnlockBaseAddress pxbuffer 0 return pxbuffer frameSize is a CGSize describing your target frame size and frameTransform is a CGAffineTransform that lets you transform the images when you draw them into frames...

iPhone App Minus App Store?

http://stackoverflow.com/questions/37464/iphone-app-minus-app-store

steps require openssh and uikittools to be installed first. Replace jasoniphone.local with the hostname of the target device. Be sure to set your own password on both the mobile and root users after installing SSH. To manually compile and..

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

a PDF and here and here Understanding the PDF Rect for link positioning Converting PDF annot datestrings Getting the target of the link Getting the page number from the Dest array Getting a table of contents Document title and Keywords Getting..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section Code Signing . Set..

“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

Standard armv6 armv7 Base SDK Latest iOS currently set to iOS 4.2 Valid Architectures armv6 armv7 I have cleaned all targets. I appreciate any tips. iphone ios xcode share improve this question If using Xcode 4.2 or higher try the following.. the plus button in the bottom left of the popover and type 'armv7' then click Done Update you should add armv7s to target the iPhone 5 as well. And drop armv6 if building with Xcode 4.5 or higher which no longer supports armv6. That's it. You..

Create singleton using GCD's dispatch_once in Objective C

http://stackoverflow.com/questions/5720029/create-singleton-using-gcds-dispatch-once-in-objective-c

singleton using GCD's dispatch_once in Objective C If you can target iOS 4.0 or above Using GCD is it the best way to create singleton in Objective C thread safe id sharedInstance static dispatch_once_t..

The executable was signed with invalid entitlements

http://stackoverflow.com/questions/1074546/the-executable-was-signed-with-invalid-entitlements

task allow property. Save the Entitlements.plist file. in Xcode 4 get task allow is called Can be debugged Select the Target and open the Build settings inspector. In the ˜Code Signing Entitlements build setting type in the filename of the new Entitlements.plist..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

Add to project . Click on arrow at lib project icon mylib.a file name shown drag this mylib.a file and drop it into Target Link Binary With Library group. Open target info in fist page General and add my lib to dependencies list after that all..

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

with the latest SDK ie 5.1 and still run on devices with earlier versions of the firmware SDK . Set your Deployment Target to the earliest version you want to be able to run with ie 3.0. You set your Base SDK to the latest version that you are.. ie 5.0. This way you can reference the newer definitions and symbols in your 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..

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

to or support. Once you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment Target to a lower iOS version. For a quick shot of how to do this cf. step 7 in the next section. Note that you are now entering.. iPhone 4.0. If you are iPhone only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0... If you are iPhone only 4.0 is the way to go. Close that window. From the menu select Project Edit Active Target YourTarget Under Architecture Base SDK choose one of the available device or simulator options iPhone 3.2 or iPhone 4.0. If you want..

iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

http://stackoverflow.com/questions/3313786/ios-4-app-crashes-at-startup-on-ios-3-1-3-symbol-not-found-nsconcretestackbl

running Xcode 3.2.3 with the iOS 4.0 SDK. I built my app with Base SDK iphoneos4.0 Active SDK iphoneos4.0 Deployment Target 3.1.3 and Architecture standard arm6 arm7 . Compiler GCC 4.2. As I understand it this is the correct way to build an app..

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

CREATING_UNIVERSAL_DIR PUBLIC_HEADERS_FOLDER_PATH fi fi INSTALL INSTRUCTIONS Create a static lib project Select the Target In Build Settings tab set Build Active Architecture Only to NO for all items In Build Phases tab select Add ... New Build.. script courtesy of Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes all output after 200 lines. Select your Target and in the Run Script Phase you MUST untick Show environment variables in build log if you're using a custom build output.. Users blah Library Developer Xcode DerivedData AppName ashwnbutvodmoleijzlncudsekyf Build Products Debug universal libTargetName.a ...that is the location of your Universal Build. How to include non sourcecode files in your project PNG PLIST XML..

How do you beta test an iphone app?

http://stackoverflow.com/questions/40154/how-do-you-beta-test-an-iphone-app

configuration Release . Click the button Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration.. Duplicate and name it Distribution . Close the Project Info pane. Open the Target Info pane In Groups Files expand Targets select your target and press Cmd I . Go to the tab Build . Select the Configuration named Distribution . Find the section.. section Code Signing . Set the value of Code Signing Identity Any iPhone OS Device to iPhone Distribution . Close the Target Info pane. In the main window select the Active Configuration to Distribution . Create a new file from the file template..

“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

question If using Xcode 4.2 or higher try the following Click your Project name in the left column followed by the Target Click the 'Build Settings' tab in the right column Click the 'Release' or 'Distribution' row under 'Architectures' and choose..

How do I manage building a Lite vs Paid version of an iPhone app?

http://stackoverflow.com/questions/549462/how-do-i-manage-building-a-lite-vs-paid-version-of-an-iphone-app

targets share improve this question Xcode has good support for multiple targets. From the project menu select New Target... . Add another iPhone executable Cocoa Touch Application you can then specify on a resouce by resource basis which items.. and is not included in the current target by right clicking on the Groups and Files list header top lhs and enabling Target Membership. You switch between building different targets in the same way as you switch between building for Simulator or.. which are each built for their respective target or you can set a build time flag for the pre processor. Select the Target in the Groups and Files list then get info on that target. Go to the build tab and search for preprocess . You should see..

UIImage: Resize, then Crop

http://stackoverflow.com/questions/603907/uiimage-resize-then-crop

so might not have noticed any deficiencies in portrait mode. Here's my code it's part of a categeory on UIImage. Target size in my code is always set to the full screen size of the device. @implementation UIImage Extras #pragma mark #pragma..

Linking a static library to an iOS project in XCode 4

http://stackoverflow.com/questions/6124523/linking-a-static-library-to-an-ios-project-in-xcode-4

TARGETS in the left hand column select my main project's target and navigate to the Build Phases tab. Click the for Target Dependencies and add the library icon target dependency from the added static library project. Click the for Link Binary..

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

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

for armv6 by default. What you have to do is add armv6 in the Architectures field under Build Settings for both your Target and your Project. Then your app will be able to run on iPhone 3G devices. Answer can be found here How to build for armv6.. a newly created Xcode 4.2 project running on an iPhone 3G 4.2.1. Here is how I was able to get it to run. 1 Change the Target's Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's Build Settings Valid.. 1 Change the Target's Build Settings Architecture from Standard armv7 to other . Add armv6 and armv7. 2 Change the Target's Build Settings Valid Architecture to armv6 and armv7. 3 Change the Target's Build Settings iOS Deployment Target to iOS..

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

echo BUILT_PRODUCTS_DIR BUILT_PRODUCTS_DIR echo CONFIGURATION_TEMP_DIR CONFIGURATION_TEMP_DIR echo TARGET_BUILD_DIR TARGET_BUILD_DIR fi ##################### part 1 ################## # First work out the BASESDK version number.. echo BUILT_PRODUCTS_DIR BUILT_PRODUCTS_DIR echo CONFIGURATION_TEMP_DIR CONFIGURATION_TEMP_DIR echo TARGET_BUILD_DIR TARGET_BUILD_DIR fi ##################### part 1 ################## # First work out the BASESDK version number NB Apple ought.. fi echo XCode has selected SDK PLATFORM_NAME with version SDK_VERSION although back targetting IPHONEOS_DEPLOYMENT_TARGET echo ...therefore OTHER_SDK_TO_BUILD OTHER_SDK_TO_BUILD # ##################### end of part 1 ################## #####################..

Building iPhone Code using xcodebuild and running LLVM/Clang Static Analyzer

http://stackoverflow.com/questions/490835/building-iphone-code-using-xcodebuild-and-running-llvm-clang-static-analyzer

run xcodebuild on my project 1. Open Terminal 2. Go to Project Directly 3. xcodebuild I get this error BUILDING NATIVE TARGET XProject OF PROJECT XProject WITH THE DEFAULT CONFIGURATION Release Checking Dependencies... CodeSign error no certificate..

Submitting app to app store with xCode4 - summary of key steps - please correct/add

http://stackoverflow.com/questions/5640851/submitting-app-to-app-store-with-xcode4-summary-of-key-steps-please-correct

and žTARGET p d. In PROJECT Under žCode Signing žrelease žany SDK choose the imported one with the correct BundleID e. In TARGET Under žCode Signing žrelease žany SDK choose the imported one with the correct BundleID If xCode doesn't let you select the.. Error g. for the PROJECT Do NOT change the default settings in xCode Deployment Skip Install release no h. for the TARGET check if in xCode Deployment Skip Install release yes i. Still in xCode under žProduct žCLEAN then žBuild for Archiving p œArchive..

How to set up CMake to build an app for the iPhone

http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone

data into my resources folder as if I had added a blue folder link in Xcode . # copy resource phase set APP_NAME TARGET_BUILD_DIR FULL_PRODUCT_NAME set RES_DIR test_SOURCE_DIR data add_custom_command TARGET NAME POST_BUILD COMMAND Developer.. resource phase set APP_NAME TARGET_BUILD_DIR FULL_PRODUCT_NAME set RES_DIR test_SOURCE_DIR data add_custom_command TARGET NAME POST_BUILD COMMAND Developer Library PrivateFrameworks DevToolsCore.framework Resources pbxcp exclude .DS_Store exclude..

XCode: Displaying a UIDatePicker when user clicks on UITextbox

http://stackoverflow.com/questions/8974131/xcode-displaying-a-uidatepicker-when-user-clicks-on-uitextbox

UITextField _inputField ivar to store the textfield currently being edited @synthesize datePicker _datePicker TARGET METHODS void pickerValueChanged UIDatePicker picker _inputField.text self.datePicker.date.description set text to date description..