xcode4.2

App in foreground and background

拈花ヽ惹草 提交于 2019-12-13 03:59:10
问题 I have a button ON/OFF in my viewcontroller that plays some music when it is turned on by the user. Now if the user clicks the iPhone home button and re-launches my app again, the button is shown as "ON" but there is no music playing. So the user has to hit ON-OFF-ON again for music to start playing again. Anyone know how can I call my ON/OFF view controller button so that I can set it to OFF when app enters background and set it to ON and play the music when it enters forground in these app

iPhone app Development Target change in xocde4.2.1

故事扮演 提交于 2019-12-13 02:57:56
问题 I have submit my app in app store successfully and got approve from apple but the app Development Targer is 5.0 and developed in Xcode 4.2.1(mac os x). So its not installed in IOS 4 devices from app store, now how can i solve this problem and get run on all (i.e) from IOS 3 devices. 回答1: You will need to set the deployment target to whatever minimum iOS version you want to target. You can set this in your Project's Target, as in the screenshot below: However, it's a good idea to keep the Base

Where is the iconset command-line tool 'iconutil' located?

一世执手 提交于 2019-12-13 00:44:22
问题 I have XCode 4.2 and need to submit a Mac app to App Store. I've tried all kinds of suggested methods to get the multi-resolution icons in there, so you don't need to inform me on that. The remaining method is to use iconutil . I've searched in Spotlight, searched my Mac's harddisk in Finder, two later XCode .dmg images, sudo find in Terminal, and looked for paths on the web. The XCode 4.4.1 .dmg had Iconutil.strings and Iconutil.xcspecs , but that's as far as I've come. Is there a package I

contentOfFile path gives null

泪湿孤枕 提交于 2019-12-13 00:39:16
问题 I'm trying to get all the text from a txt file into a string, but if I try to NSlog() this string, i get null. I think it's because of the path i'm trying to get the file at, but I can't seem to figure out what is wrong with the path. I know that i get the right navigationItem.title, so that is not the problem. The text file is in the main bundle in a subfolder called Øvelser/Text/"nameOfExercise".txt. I have pasted my code below: - (void)viewDidLoad { [super viewDidLoad]; //Read from the

dyld: Library not loaded: ../lib/abc.dynlib

ぃ、小莉子 提交于 2019-12-12 23:42:16
问题 I am having trouble getting a my XCode 4.2 project to run against a dynamic library (dynlib). What I am doing is adding the library into xcode project, and then creating a new 'Copy Files' build phase with this lib. The project does(!) run well if I set the Destination in the build phase to 'Products Directory', but then I have to deliver the lib with the app as opposed to embedded inside it. I get the error in the title in all other settings of Destination in the build phase. Also, I tried

Bad access exception using xcode 4.2

旧巷老猫 提交于 2019-12-12 23:19:22
问题 I am getting " EXC_BAD_ACCESS " when touch the button to call the button action. #import "TestViewController.h" @implementation TestViewController - (id)init { self = [super init]; if (self) { self.title=@"IOS5 and Xoced 4.2"; UIButton *button=[[UIButton alloc]initWithFrame:CGRectMake(9,6,100,100)]; button.backgroundColor=[UIColor greenColor]; [button addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview: button]; } return self; } -

SystemConfiguration/SystemConfiguration.h file not found

两盒软妹~` 提交于 2019-12-12 20:10:42
问题 I am getting the following error in the file Reachability.h. I have the required framework. What else do I need to do? This is an app made in Xcode3 and I am trying to import in Xcode4. 回答1: Re-installing Xcode removed the error. 来源: https://stackoverflow.com/questions/9685101/systemconfiguration-systemconfiguration-h-file-not-found

Cannot create an NSPersistentStoreCoordinator with a nil model error

好久不见. 提交于 2019-12-12 15:44:44
问题 I have a coreData datamodel file which was running perfectly. Due to some special requirements i deleted the old datamodel file and created another datamodel file with exactly same entities . There is no change in entities from the previous dataModel. I have made this a part of a different bundle and referring it from that bundle. Code for creating the managedObjectModel if (managedObjectModel_ != nil) { return managedObjectModel_; } NSBundle *newBundle = [NSBundle bundleWithURL:[[NSBundle

XCode 4.2 linker error Library not found -lFlurryAnalytics

家住魔仙堡 提交于 2019-12-12 12:17:07
问题 I am getting this error when trying to build my project. I have a paid / free version the paid version is working just fine with the same library. However for some reason the free version is having a hard time with the Flurry Analytics library which is the same file version as the paid app. I added it by going to Add > Existing Frameworks... Add Other and browsed to the library in the paid apps folder. I am not sure what else to try I have made sure the project settings between paid and free