iPhone proximity sensor in landscape not available?
Is the proximity sensor available in landscape mode? It only seems to work for me when I'm in portrait... ...
Is the proximity sensor available in landscape mode? It only seems to work for me when I'm in portrait... ...
What's the minimum memory needed to run a RAR decompression algorithm? I want to port a RAR decompression algorithm to mobiles (iPhone, Android and BlackBerry) and want to know if there's a bare minimum of memory needed before starting. I've heard that RAR decompression requires much more memory than ZIP decompression. ...
I'm trying to call the labelWithString function and I'm getting the following run-time errors: Error: CGContextSetGrayFillColor: invalid context 0x0 Error: CGContextTranslateCTM: invalid context 0x0 Error: CGContextScaleCTM: invalid context 0x0 This is the line of code that I tracked it down to: self.label = [CCLabel labelWithString...
If I have a UIView, and I add an allocated subview into it (in this case the UIImageView), when I release the UIView, will UIImageView also be released? I set up my view and a subview like this: UIView *view=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; UIImage *myImage=[UIImage imageNamed:@"image.png"]; // This is the su...
Using Iphone and Objective C Im trying to find what plane has been clicked/touched in my opengl view. Typically i would use glPushName/ flPopName but this function doesn't seem to be implemented in the sdk or defined in . Does anyone know where to get there useful functions or another way to get the object that was clicked? ...
Hi, I am inserting a UITableView as a subview in the RootView. The data is loaded asynchronously using ASIHTTPRequest. I want to resize the tableView frame size when the data finishes downloading, so that the tableview is scrollable. Please find the code below, I am stuck on this and would really appreciate any help. // RootView which...
I am able to add an iAd Banner View to my tab bar controller with no problem. The issue comes with the rendering. The Banner View is drawn overtop of the navigation bar in my interface. How can I push the navigation bar down or is their a better approach? I need to do this all programmatically without IB. ...
I am new to Core Data and trying to think of the simplest and / or most performant way to implement a tags feature for items in Core Data. I am still wrapping my head around the fundamental differences between core data and the sql server I am used to. Has anyone done this? Or have any suggestions of a solid implementation for this? ...
In iPhone 3.1 I used the following code to play a movie: moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url]; moviePlayer.movieControlMode = MPMovieControlModeDefault; moviePlayer.backgroundColor = [UIColor blackColor]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidFinish:) name:...
I have a view called PatternsViewController and a subview named SolutionsViewController. I want to pass a variable in PatternsViewController named iteration to my SolutionsViewController, right before I present it with solutions = [[SolutionsViewController alloc] init]; solutions.modalTransitionStyle = UIModalTransitionStyleCrossDissolv...
Hi, I want to check if the iOS version of the device is greater then the 3.1.3 I tried things like [[UIDevice currentDevice].systemVersion floatValue] but does not work, I just want a if (version > 3.1.3) { } Does anybody know how to do this? Thanks ...
Say you want to playback exactly what the iPhone mic is picking up in real-time. Which framework/class would be used? Any nudge would help, can't figure it out. Thanks. ...
I want to programattically pull a movie file down into a NSData object and write it to iPhone disk in the movies directory so that the user can open up their iPhone iPod section and watch the movies from there... Is that possible? Or do I need within my app to create a 'viewing' area, download the files to NSHomeDirectory add a folder i...
The Apple documentation on the MPMediaPlaylist class is pre-iOS4, so it definitively states that you cannot write new playlists to iTunes on the phone with the SDK. However, with the iOS4 update, users can create and save new playlists on the phone. Is this functionality offered to developers as well? If so, could someone point me to app...
What is the use of the contentOffset property in UIScrollView ? ...
My app's root view controller supports any orientation but user can navigate to another view controller that supports only landscape orientation. The basic problem is that regardless of the device's actual physical orientation, when the user pops back to root view controller, the navigation bar has a height that would be appropriate fo...
I'm using William Woody's cover flow implementation. When built with the iOS 3.1 SDK it works well, both on 3.1 and 4.0 devices. But when built with the 4.0 SDK it doesn't show the tiles on an iPod touch device with 4.0 (but it does in the simulator and on an iPhone device). What might be the problem? What changed that might cause this?...
I use the following code to get a screenshot of the screen and save it to the photo albums. CGImageRef screen = UIGetScreenImage(); UIImage *screenImage = [UIImage imageWithCGImage:screen]; UIImageWriteToSavedPhotosAlbum(screenimage, nil, nil), nil); This works great but if my app is in landscape mode the saved image does...
Hi, I have been trying to do a REST web service using PUT in iphone for days but with no luck. i'm wondering if anyone can upload a sample of doing REST web service using PUT or the approach to do? it will be of great help. Thanks ...
I want to use the UIViewController MediaPlayer additions in an iPhone 4 static library. The .h of my view controller subclass imports <MediaPlayer/MediaPlayer.h>. However, when I use presentMoviePlayerViewControllerAnimated in the .m I get a compiler warning: 'MyViewController' may not respond to '-presentMoviePlayerViewControllerAnima...