xcode4.5

XCode 4.5.2 working issues

丶灬走出姿态 提交于 2019-12-06 14:15:00
I have recently downloaded Xcode update 4.5.2 and it seems to performing slow. I have tried other applications and everything is running fine. I'm currently developing an app and it's been performing so slowly, that I can't edit an UIlabel box. Just in case: remove the contents in the "~/Library/Developer/Xcode/DerivedData" - Folder and see if it still stalls. I had a sluggish Xcode once and that helped. 来源: https://stackoverflow.com/questions/13294521/xcode-4-5-2-working-issues

How to Add UIImageView with UILabel in navigation bar of iphone?

馋奶兔 提交于 2019-12-06 13:15:11
问题 I have some navigation bar in my UI of iphone app. Now i want to add two images on the navigation bar on center of the navigation bar.. I have successfully added the two UIImageView on the navigation-bar but my problem is that i have two UIImageView with the label on it .. Let me show u the snapshot ... now my problem is i don't know how to add this kind of label near UIImageView in navigation bar..so please if anyone can guide me for this then it will help me a lot.. i have already

Xcode 4.5 SplitView broken orientation with iOS 5.1 (working on iOS6 thought)

邮差的信 提交于 2019-12-06 12:38:38
问题 I was working on a splitView project when the Xcode was updated to v4.5. Since then autorotation was working perfectly. After the update, autorotation works only for iOS 6. On iOS 5.1 i am stack in Portrait. I have read all possible solutions but nothing seems to be able to fix my problem. Below is what i have done so far: Checked that All orientations are in my plist. Replaced (BOOL)shouldAutorotateToInterfaceOrientation: with - (BOOL)shouldAutorotate { return TRUE; } - (NSUInteger

iOS 6, Xcode 4.5 video not exiting when done playing

自古美人都是妖i 提交于 2019-12-06 10:49:02
I am using this code to play a video on iOS 6: -(void)GrommeVideo4 { NSURL *url5 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Flickers" ofType:@"mp4"]]; grommePlayer4 = [[MPMoviePlayerController alloc] initWithContentURL:url5]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackDidFinish:) name:MPMoviePlayerPlaybackDidFinishNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayerWillExitFullscreen:) name:MPMoviePlayerWillExitFullscreenNotification object:nil]; grommePlayer4

XCode simulator is not displaying latest changes

独自空忆成欢 提交于 2019-12-06 10:13:14
问题 I am creating an app in XCode 4.5. My problem is that I am running app in simulator but it is not showing recent changes. On resetting Content and Settings from iOS simulator option it shows latest output. But, if I close simulator and ran app again, it again shows old output. Can anyone have idea, what is behind that and how to fix this? Thanks. 回答1: try deleting the app from the simulator (like you would do it on the iPhone), then rerun your app from xcode 回答2: What I do when this happens:

How to make xcodeproj file relative in Xcode 4.5

醉酒当歌 提交于 2019-12-06 09:27:13
问题 I was following this tutorial and stumbled across this screen shot: apparently there was a way to make the Xcode project file relative to some user defined env variable in earlier versions of Xcode (you get there by highlighting the project file then clicking cmd + i ) I couldn't find a way to this in Xcode 4.5 (the closest I could get to that was this post, but the instructions don't work on Xcode 4.5) ideas? update : I tried the idea of changing the 'header search paths' under build

NSOpenPanel crashes when debugging with Xcode 4.5.1

情到浓时终转凉″ 提交于 2019-12-06 09:23:03
I have a document-based application. Since upgrading to XCode 4.5.1 (from 4.4) NSOpenPanel crashes when I debug the application from Xcode. It does not crash when I start the program directly. I use NSOpenPanel on two occasions: When the user selects "Open" from the "File" menu (since it is a document-based application, none of my own code is involved) and for importing some data into my document (so it gets called by my own code). NSOpenPanel crashes on both occasions (the dialog opens, but before I can do anything, an exception is raised). I made clean, tried switching compiler from Apple

Open Google+ Application in Xcode 4.5

不羁岁月 提交于 2019-12-06 08:48:37
I making a social application which requires Google+. I know that I can open Google+ as a link to Safari (Which isn't really user Friendly having to switch apps just to post something). This code opens the link to Safari: -(IBAction)Google+:(id)sender { NSLog(@"Google+"); //The link will go to Stack Overflow Google+ Page NSURL *GooglePlus = [NSURL URLWithString:@"https://plus.google.com/+StackExchange/posts"]; [[UIApplication sharedApplication] openURL:GooglePlus]; } But is there a way to detect if Google+ Application is installed and open the application there (And if it isn't then open the

Provisioning profile stored in XCode project file for iOS apps

ぐ巨炮叔叔 提交于 2019-12-06 08:19:04
I thought I'd figured out how to store XCode projects in source control - I only version the .pbxproject file and this seems to work great. But then I noticed the provisioning profile is also kept there. This doesn't seem very good, I'm working remotely with another developer and we both have individual provisioning profiles. We keep committing new versions of the .pbxproject file with our own profile every time we change anything which is annoying, and I wonder if sharing such information is a security risk? Is there a way around this? Are we 'supposed' to be using the same team profile or

Waiting for <appname> to launch forever

断了今生、忘了曾经 提交于 2019-12-06 08:02:56
问题 I can't run my program anymore in simulator or on iPhone. It compiles just fine. No issue. But then I got the message Waiting for to launch It happens forever. This happen only in one project. 回答1: Check which provisioning you are using, it seems that ad-hoc provisioning cannot be used for debbuging. If your problem is not save with above instruction then also try these: Stop the app from running in Xcode. Delete the app from the device (or Simulator). Select Product > Clean from the Xcode