Skip to main content

Posts

Showing posts with the label xcode4.2

Xcode 4.2.1 issue : Universal app runs on iPad but not on iphone

I am right now working on one universal application where I am stuck to one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/ipad simulator. Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but i am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same. Kindly help me out to resolve the issue. Thank you.

Resume Updating views after time is invalidated

Time is invalidated to pause the views from updating because pause button was hit to pause the audio file. Next step is when user hits pause button again to resume audiofile, views should also start updating. -(void)playpauseAction:(id)sender { if ([audioPlayer isPlaying]){ [sender setImage:[UIImage imageNamed:@"play.png"] forState:UIControlStateSelected]; [audioPlayer pause]; [timer invalidate]; } else { [sender setImage:[UIImage imageNamed:@"pause.png"] forState:UIControlStateNormal]; [audioPlayer play]; self.timer = [NSTimer scheduledTimerWithTimeInterval:11 target:self selector:@selector(displayviewsAction:) userInfo:nil repeats:NO]; } } - (void)displayviewsAction:(id)sender { FirstViewController *viewController = [[FirstViewController alloc] init]; viewController.view.frame = CGRectMake(0, 0, 320, 480); [self.view addSubview:viewController.view]; [self.view addSubview:toolbar]; self.timer = [NSTimer scheduledTimerWithTimeInterval:

Cylinder in OpenGL ES on iOS 5

I am pretty new in OpenGL ES and been searching the paste few days after some examples or tutorials about creating cylinders, but unfortunately without any luck! If anybody has some sample code or anything that might be of any use it would be highly appreciated. Thanks in advance.

NSAutoreleasePool

Any idea why i get these messages - "NSAutoreleasePool is unavailable: not available in automatic reference counting mode" "ARC forbids explicit message send of 'release' " import int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; }

iPhone gcc-4.2 failed with exit code 1

Help, I'm at wits end -- sometimes my Xcode runs -- sometimes it doesn't I keep getting I installed Xcode 4.1 then upgraded to 4.2 I can't even run a freshly made project :( ProcessPCH /Users/david/Library/Developer/Xcode/DerivedData/iDecide-eurvfbqsagnsmkgdvuhytbalyxkj/Build/PrecompiledHeaders/iDecide-Prefix-fjnitkqizspbsgezzdhvfinujnhz/iDecide-Prefix.pch.pth iDecide/iDecide-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/david/Documents/tmp/iDecide setenv LANG en_US.US-ASCII setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/Users/david/.rvm/gems/ruby-1.9.2-p180/bin:/Users/david/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/david/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/david/.rvm/bin:/Users/david/apache-maven-3.0.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/usr/local/Cellar/android-sdk