¡@

Home 

2014/10/15 ¤U¤È 10:04:45

iphone Programming Glossary: bundle

Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar

http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba

maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back button instead of default..

iPad keyboard will not dismiss if modal view controller presentation style is UIModalPresentationFormSheet

http://stackoverflow.com/questions/3372333/ipad-keyboard-will-not-dismiss-if-modal-view-controller-presentation-style-is-ui

this in a modal navigation controller. WORKS broken b broken alloc initWithNibName @ broken bundle nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle.. nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle nil UINavigationController navigationController UINavigationController alloc initWithRootViewController.. Is the navigation controller the problem WORKS broken b broken alloc initWithNibName @ broken bundle nil b.modalTransitionStyle UIModalTransitionStyleFlipHorizontal self presentModalViewController b animated..

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

that comes AFTER THE FIRST ONE copy paste the code below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the.. below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in.. new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your Products In your NEW BUNDLE TARGET in Build Phases add a Copy Bundle Resources section..

iPhone App Minus App Store?

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

normally using Build not Build Go . In the build Release iphoneos directory you will have an app bundle. Use your preferred method to transfer this to Applications on the device. scp r AccelerometerGraph.app..

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

2010 10 embedding binary resources To use the framework your users would just drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above.. drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above but not the source as it's not included only the compiled output is in the bundle.. see the articles above but not the source as it's not included only the compiled output is in the bundle . This can also be a great way to distribute code that is used for multiple projects within your company...

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

The HTML5 standard has support for releasing stand alone HTML5 apps. Essentially a HTML5 app is a bundle of HTML5 JavaScript and CSS files that will run stand alone in the browser of the desktop or device...

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

an IPA file. In Xcode 4 you can use Product Archive to archive an application in an .xcarchive bundle. How can I create an .ipa file with Xcode 4 iphone xcode xcode4 share improve this question Creating..

Using HTML and Local Images Within UIWebView

http://stackoverflow.com/questions/747407/using-html-and-local-images-within-uiwebview

ie. it can't be found even though it's added as a resource in my project and is copied into the bundle. I've tried using NSBundle to get the full path of the image and using that and it still doesn't show.. you have to load the HTML into the view with the correct baseURL NSString path NSBundle mainBundle bundlePath NSURL baseURL NSURL fileURLWithPath path webView loadHTMLString htmlString baseURL baseURL You can..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil.. last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil do something Generally we don't have SignerIdentity..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

of my QuestionManagerViewController to look like this id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom.. NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom initialization return self When I run the code Im getting this error 2009 05.. exception ' NSInternalInconsistencyException ' reason ' UIViewController _loadViewFromNibNamed bundle loaded the Question1View nib but the view outlet was not set.' Im sure there is a way to load the view..

Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar

http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba

item. Works well for me. Edit As pointed out by PrairieHippo maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back button instead of default behaviour displaying title of previous screen UIBarButtonItem..

iPad keyboard will not dismiss if modal view controller presentation style is UIModalPresentationFormSheet

http://stackoverflow.com/questions/3372333/ipad-keyboard-will-not-dismiss-if-modal-view-controller-presentation-style-is-ui

has a Done button. The keyboard won't go away if I present this in a modal navigation controller. WORKS broken b broken alloc initWithNibName @ broken bundle nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle nil UINavigationController navigationController UINavigationController.. WORKS broken b broken alloc initWithNibName @ broken bundle nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle nil UINavigationController navigationController UINavigationController alloc initWithRootViewController b navigationController.modalPresentationStyle UIModalPresentationFormSheet.. and present 'b' as a modal view controller by itself it works. Is the navigation controller the problem WORKS broken b broken alloc initWithNibName @ broken bundle nil b.modalTransitionStyle UIModalTransitionStyleFlipHorizontal self presentModalViewController b animated YES b release WORKS broken b broken alloc initWithNibName..

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

Do everything above check it works Create a new Run Script phase that comes AFTER THE FIRST ONE copy paste the code below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your.. phase that comes AFTER THE FIRST ONE copy paste the code below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your Products In your NEW BUNDLE TARGET in Build Phases add.. of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your Products In your NEW BUNDLE TARGET in Build Phases add a Copy Bundle Resources section and drag drop all the PNG files etc into it Script to auto copy..

iPhone App Minus App Store?

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

Set Active Build Configuration Release. Compile your project normally using Build not Build Go . In the build Release iphoneos directory you will have an app bundle. Use your preferred method to transfer this to Applications on the device. scp r AccelerometerGraph.app root@jasoniphone Applications Let SpringBoard know the new..

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

own iphone frameworks in xcode http www.drobnik.com touch 2010 10 embedding binary resources To use the framework your users would just drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above but not the source as it's not included only the compiled.. binary resources To use the framework your users would just drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above but not the source as it's not included only the compiled output is in the bundle . This can also be a great way to distribute code that.. be able to see the header files you copy into the bundle see the articles above but not the source as it's not included only the compiled output is in the bundle . This can also be a great way to distribute code that is used for multiple projects within your company. Update Check out the link featherless added below it is..

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

blackberry mobile webos share improve this question The HTML5 standard has support for releasing stand alone HTML5 apps. Essentially a HTML5 app is a bundle of HTML5 JavaScript and CSS files that will run stand alone in the browser of the desktop or device. You can distribute them like any other program including selling..

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

of .xcarchive In Xcode 3.2.5 I use Build And Archive to create an IPA file. In Xcode 4 you can use Product Archive to archive an application in an .xcarchive bundle. How can I create an .ipa file with Xcode 4 iphone xcode xcode4 share improve this question Creating an IPA is done along the same way as creating an .xcarchive..

Using HTML and Local Images Within UIWebView

http://stackoverflow.com/questions/747407/using-html-and-local-images-within-uiwebview

to load the image. The problem is that the image doesn't load ie. it can't be found even though it's added as a resource in my project and is copied into the bundle. I've tried using NSBundle to get the full path of the image and using that and it still doesn't show up in the web view. Any ideas iphone html uikit uiwebview.. to refer to images does not work with UIWebView. Instead you have to load the HTML into the view with the correct baseURL NSString path NSBundle mainBundle bundlePath NSURL baseURL NSURL fileURLWithPath path webView loadHTMLString htmlString baseURL baseURL You can then refer to your images like this img src myimage.png from..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

to UTF 8 or ASCII Add a key pair to Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil do something Generally we don't have SignerIdentity in any.. SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil do something Generally we don't have SignerIdentity in any of the App Store applications we build so checking..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

with the view's component using IB . I override the initWithNib of my QuestionManagerViewController to look like this id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom initialization return self When I run the code Im getting this.. to look like this id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom initialization return self When I run the code Im getting this error 2009 05 14 15 05 37.152 iMobiDines 17148 20b Terminating app due to.. 05 37.152 iMobiDines 17148 20b Terminating app due to uncaught exception ' NSInternalInconsistencyException ' reason ' UIViewController _loadViewFromNibNamed bundle loaded the Question1View nib but the view outlet was not set.' Im sure there is a way to load the view using the nib file without needing to create a viewController..

Creating a left-arrow button (like UINavigationBar's “back” style) on a UIToolbar

http://stackoverflow.com/questions/227078/creating-a-left-arrow-button-like-uinavigationbars-back-style-on-a-uitoolba

pointed out by PrairieHippo maralbjo found that using the following simple code did the trick requires custom image in bundle should be combined with this answer. So here is additional code Creates a back button instead of default behaviour displaying..

iPad keyboard will not dismiss if modal view controller presentation style is UIModalPresentationFormSheet

http://stackoverflow.com/questions/3372333/ipad-keyboard-will-not-dismiss-if-modal-view-controller-presentation-style-is-ui

won't go away if I present this in a modal navigation controller. WORKS broken b broken alloc initWithNibName @ broken bundle nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle nil UINavigationController.. @ broken bundle nil self.view addSubview b.view DOES NOT WORK broken b broken alloc initWithNibName @ broken bundle nil UINavigationController navigationController UINavigationController alloc initWithRootViewController b navigationController.modalPresentationStyle.. by itself it works. Is the navigation controller the problem WORKS broken b broken alloc initWithNibName @ broken bundle nil b.modalTransitionStyle UIModalTransitionStyleFlipHorizontal self presentModalViewController b animated YES b release..

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

a new Run Script phase that comes AFTER THE FIRST ONE copy paste the code below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll.. copy paste the code below Create a new Target in Xcode of type bundle In your MAIN PROJECT in Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your Products In your.. Build Phases add the new bundle as something it depends on top section hit the plus button scroll to bottom find the .bundle file in your Products In your NEW BUNDLE TARGET in Build Phases add a Copy Bundle Resources section and drag drop all the..

iPhone App Minus App Store?

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

Compile your project normally using Build not Build Go . In the build Release iphoneos directory you will have an app bundle. Use your preferred method to transfer this to Applications on the device. scp r AccelerometerGraph.app root@jasoniphone..

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

touch 2010 10 embedding binary resources To use the framework your users would just drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above but not the source.. users would just drag the .framework bundle into Xcode. They will be able to see the header files you copy into the bundle see the articles above but not the source as it's not included only the compiled output is in the bundle . This can also.. copy into the bundle see the articles above but not the source as it's not included only the compiled output is in the bundle . This can also be a great way to distribute code that is used for multiple projects within your company. Update Check out..

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

this question The HTML5 standard has support for releasing stand alone HTML5 apps. Essentially a HTML5 app is a bundle of HTML5 JavaScript and CSS files that will run stand alone in the browser of the desktop or device. You can distribute..

Xcode 4: create IPA file instead of .xcarchive

http://stackoverflow.com/questions/5265292/xcode-4-create-ipa-file-instead-of-xcarchive

And Archive to create an IPA file. In Xcode 4 you can use Product Archive to archive an application in an .xcarchive bundle. How can I create an .ipa file with Xcode 4 iphone xcode xcode4 share improve this question Creating an IPA is done..

Using HTML and Local Images Within UIWebView

http://stackoverflow.com/questions/747407/using-html-and-local-images-within-uiwebview

the image doesn't load ie. it can't be found even though it's added as a resource in my project and is copied into the bundle. I've tried using NSBundle to get the full path of the image and using that and it still doesn't show up in the web view... UIWebView. Instead you have to load the HTML into the view with the correct baseURL NSString path NSBundle mainBundle bundlePath NSURL baseURL NSURL fileURLWithPath path webView loadHTMLString htmlString baseURL baseURL You can then refer to your..

Reducing piracy of iPhone applications

http://stackoverflow.com/questions/846309/reducing-piracy-of-iphone-applications

Info.plist SignerIdentity Apple iPhone OS Application Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil do something Generally.. Signing The last one is easiest to check with this code NSBundle bundle NSBundle mainBundle NSDictionary info bundle infoDictionary if info objectForKey @ SignerIdentity nil do something Generally we don't have SignerIdentity in any of the..

iPhone: How to load a View using a nib file created with Interface Builder

http://stackoverflow.com/questions/863321/iphone-how-to-load-a-view-using-a-nib-file-created-with-interface-builder

the initWithNib of my QuestionManagerViewController to look like this id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom initialization return.. id initWithNibName NSString nibNameOrNil bundle NSBundle nibBundleOrNil if self super initWithNibName @ Question1View bundle nibBundleOrNil Custom initialization return self When I run the code Im getting this error 2009 05 14 15 05 37.152 iMobiDines.. app due to uncaught exception ' NSInternalInconsistencyException ' reason ' UIViewController _loadViewFromNibNamed bundle loaded the Question1View nib but the view outlet was not set.' Im sure there is a way to load the view using the nib file..

Use custom fonts in iPhone App [duplicate]

http://stackoverflow.com/questions/13029660/use-custom-fonts-in-iphone-app

Easy way to see saved NSUserDefaults?

http://stackoverflow.com/questions/1676938/easy-way-to-see-saved-nsuserdefaults

GUID directory. So cd 1BAB4C83 8E7E 4671 AC35 6043F8A9BFA7 Library Preferences You should find a file that looks like Bundle Identifier .foo.pList Open this up in the pList editor and browse persisted values to your heart's content. share improve..

Tips for a successful AppStore submission? [closed]

http://stackoverflow.com/questions/28551/tips-for-a-successful-appstore-submission

actual device Doesn't crash Using correct certificates profile What I'm a little unsure about are how to configure the Bundle Display Name Bundle Identifier and Bundle Name in info.plist. I understand the first is the text that's shown on the iPhone.. crash Using correct certificates profile What I'm a little unsure about are how to configure the Bundle Display Name Bundle Identifier and Bundle Name in info.plist. I understand the first is the text that's shown on the iPhone itself but what.. certificates profile What I'm a little unsure about are how to configure the Bundle Display Name Bundle Identifier and Bundle Name in info.plist. I understand the first is the text that's shown on the iPhone itself but what about the last Does this..

App store link for “rate/review this app”

http://stackoverflow.com/questions/3124080/app-store-link-for-rate-review-this-app

contain the right link self.appStoreID would find your App Store ID automatically assuming you already defined your Bundle ID as going to be on the App Store and already created the app so iTunes Connect . I recommend using this instead of setting..

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

if you embed projects inside each other from Xcode 3.x through to Xcode 4.6.x Bonus script to let you auto include Bundles i.e. include PNG files PLIST files etc from your library see below scroll to bottom now supports iPhone5 using Apple's.. button scroll to bottom find the .bundle file in your Products In your NEW BUNDLE TARGET in Build Phases add a Copy Bundle Resources section and drag drop all the PNG files etc into it Script to auto copy the built bundle s into same folder as..

Direct “rate in iTunes” link in my app?

http://stackoverflow.com/questions/3654144/direct-rate-in-itunes-link-in-my-app

contain the right link self.appStoreID would find your App Store ID automatically assuming you already defined your Bundle ID as going to be on the App Store and already created the app so iTunes Connect . I recommend using this instead of setting..

Is it possible to reverse-engineer my iPhone application?

http://stackoverflow.com/questions/5058203/is-it-possible-to-reverse-engineer-my-iphone-application

this application from the compiled product iphone objective c share improve this question On OSX an Application Bundle is just a directory named .app with some special meta data files about the application and the application executables and..

Can somebody explain the process of a UIViewController birth (which method follows which)?

http://stackoverflow.com/questions/5107604/can-somebody-explain-the-process-of-a-uiviewcontroller-birth-which-method-follo

ways for this process to occur but a normal timeline could look something like this viewController initWithNibname Bundle viewController awakeFromNib viewController loadView view awakeFromNib viewController viewDidLoad viewController viewWillAppear..

XCode 4 hangs at “Attaching to (app name)”

http://stackoverflow.com/questions/5382968/xcode-4-hangs-at-attaching-to-app-name

the issue Restart the simulator. Make sure that you haven't included the Info.plist file in your Building Phases Copy Bundle Resources. Resources folder added to the project as a folder reference the blue folder icon . That caused the trouble after..

how to implement application tests in xcode4?

http://stackoverflow.com/questions/5637272/how-to-implement-application-tests-in-xcode4

was as follows Assuming you have an application target called MyApp Add a new target of type other Cocoa Unit Testing Bundle to the project e.g MyAppTesting . Here all Unit test files are located. Go to MyAppTesting Build Phases and add MyApp as.. that MyApp is build before building the MyAppTesting target. Open the Build Settings of MyAppTesting and change Bundle Loader BUILT_PRODUCTS_DIR MyApp.app MyApp Test host BUNDLE_LOADER That causes the tests to run within MyApp. Open the Build..

Version vs build in XCode 4

http://stackoverflow.com/questions/6851660/version-vs-build-in-xcode-4

repurposed the fields. Going forward if you look on the Info tab for your Application Target you should use the Bundle versions string short as your Version e.g. 3.4.0 and Bundle version as your Build e.g. 500 or 1A500 . If you don't see them.. Info tab for your Application Target you should use the Bundle versions string short as your Version e.g. 3.4.0 and Bundle version as your Build e.g. 500 or 1A500 . If you don't see them both you can add them. Those will map to the proper Version.. values. When viewing the Info tab if you right click and select Show Raw Keys Values you'll see the actual names are CFBundleShortVersionString Version and CFBundleVersion Build . The Version is usually used how you appear to have been using it with..

iPhone UIWebView local resources using Javascript and handling onorientationChange

http://stackoverflow.com/questions/843820/iphone-uiwebview-local-resources-using-javascript-and-handling-onorientationchan

example of handling onOrientationChange How to build an iPhone website but I'm serving the webpage from my app's NSBundle mainBundle. I tried attaching a javascript function to body.onorientationchange and to window.onorientationchange but neither.. of handling onOrientationChange How to build an iPhone website but I'm serving the webpage from my app's NSBundle mainBundle. I tried attaching a javascript function to body.onorientationchange and to window.onorientationchange but neither work.. it is compiled code In the Groups files view expand the Targets tree and expand the application then go to Copy Bundle Resources and drag the .js files into it The Apple dev forums has a posted solution UIWebView and JavaScript It appears..