iphone

how to make Device 3.1.3 not pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) this condition

when Run on Device 3.1.2, why it also pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) and do code of iOS4 then it will crash , how to fix this issues? if(NSClassFromString(@"MPMoviePlayerViewController") != nil) { // iOS 4 code NSLog(@"MPMoviePlayerViewController"); MPMoviePlayerVi...

NSClassFromString(@"MPMoviePlayerViewController") returns non nil EVEN on 3.1.3 (iPhone)

How can this Possibly return non-nil on iPhone 3.1.3 (3g iPhone)? - (BOOL) isIOS3_2OrAbove { Class mplayerControllerClass = NSClassFromString(@"MPMoviePlayerViewController"); if(mplayerControllerClass != nil) { NSLog(@"MPMoviePlayerViewController not showing NIL! It is: %@\n",[mplayerControllerClass description]); return YES; ...

Using TTPhotoViewController without the Three20's URL crap?

Whenever I add the TTPhotoViewController to my window , it appears without a top navigation bar and once I tap the image, the bottom navigation overlay and the status bar (the springboard one) will disappear permanently. How do I create a top navigation bar so I can add a button to hide the view after it was shown and how do I restore th...

What exactly is apple looking for when they ask for an in-app purchase screenshot?

Do they want the purchased content in action or the store interface? what if i have a bunch of products that are very similar can I just use a single screenshot for all of them? Any help would be appreciated. Nick ...

How can i share a NSString between classes

Is there anyway that i can define an NSString. Inside of one class then access its value inside of another class? ...

iOS 4 wireless app distribution for in house applications

According to the apple website iOS 4 should support wireless app distribution. I have been unable to find any documentation at all on how to host your applications for users to download them over wifi/3g. We are currently enrolled in the standard iphone dev program, as we don't have over 500 employees. Is this limited feature limited t...

Having Freudian child parent problems with my objects. Need some pointers and/or Reference?

Hey team, I think I have a basic question that is sort of hard to look up, I think. Objective-C for Iphone. I want to create two view controller instances that message and update an instance of a Model Class. How do you do this? I would prefer no using singletons. It's basically an "I really want to learn from you guys because this...

Send PDF to iBooks

Now iBooks supports PDF. My app has access to many PDF files. Is it possible to send PDFs to iBooks (or other PDF readers like GoodReader and iAnnotate PDF) from my app? ...

Memory Warning Level Indicator - iPhone SDK

Hello everyone, I am using a ton of timers that update images in my game, and whenever I run it, the debugger somehow gives me a memory warning indicator level. I try adding some timers through a background thread, but that made a very small difference. Is there anyway I can reduce the memory usage of my app without having to get rid of...

iPhone: force from subview to remove itself

Hello In appdidfinishlaunch I'm loading a tabbarcontroller as subview and after that im loading an other view MySubView * mySubView = [[MySubView alloc] init]; [window addSubview:mySubView]; [mySubView release]; I want to close that toplayer with a buttonclick in the subview, so I set up an IBAction and tried diffrent things to force...

How to set a image as the background of UIView but scaled properly?

Hello Everyone, I would like the user to be able to select a image from their photos and set it to the background of the main view. This is what I'm currently doing: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]...

Activating the iphone keyboard

I cant believe that I haven't been able to find any documentation on this yet but I was wondering how to command the keyboard to activate and receive input from it. All of the examples I could find where for manipulating the keyboard that would pop up because of a text field being edited. Thanks ...

Syntax error before '^' token

I just upgraded core-plot to the latest version in an application that was already running successful plots. I followed the fairly simple instructions to the letter, however I'm getting 20 syntax errors in UIView.h. It seems that I'm not alone, but nobody has of yet posted a solution to the issue. An example: This code from UIView.h +...

Appstore app works perfectly on iPhone 3GS but crashes on iPod Touch and iPhone 3G on launch

I developed an app with Xcode 3.2.3 and iphone SDK 4.0, it works fine on both iPhone 3GS and 3G if I run it directly with xcode. However, if I download and install the app from appstore, it crashes at the launch screen for iPhone 3G and iPod Touch. (But works on 3GS with OS 3.1.3 or iOS 4.0) The device log shows the following: Except...

How can I easily change the overall opacity of a bitmap context using Quartz2D?

I'd like to create a fade out affect with one of my bitmap contexts that I use to draw a static image in one of my views. What's an easy way to adjust the overall opacity of the bitmap context on the fly before I render it to the view? Thanks so much in advance for your help! I'm going to continue researching this right now. ...

iPhone app running Simulator 4.0 received Sigkill

I just got the iPhone SDK 4 and I'm trying to leave off developing an app I was working on before. So I implemented both -(void)applicationDidEnterBackground:(UIApplication *)application and - (void)applicationWillTerminate:(UIApplication *)application When I click the home button in the simulator 4.0, it seems to work okay. The app ...

How can I create a floating toolbar for an iPhone/iPad app?

I'm working on a bitmap editor app for the iPad/iPhone and I'd like to have a floating toolbar that the user can move around the drawing canvas so it doesn't get in the way of the drawing surface. I'd use a standard UIToolbar, but I'd like the toolbar to have a zoom navigation view, which wouldn't fit elegantly in a standard UIToolbar. ...

is NSDateFormatter dateFromString: supposed to return nil for an invalid string?

According to the class reference, dateFromString method returns "A date representation of string interpreted using the receiver’s current settings". Using the following code: NSDateFormatter * formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]...

How can I easily change the overall opacity of a CGImageRef using Quartz2D?

This question is similar to another question I just posted, but I'd also like to create a fade out affect with one of my CGImageRefs that I use to draw a static image in one of my bitmap contexts using CGContextDrawImage(mBitmapContext, imageRect, imageRef). What's an easy way to adjust the overall opacity of CGImageRef on the fly before...

Int from NSData

Hi all, I have a NSData object with 4 bytes length. I know this 4 bytes construcuts a positive integer. How should I get the int from those NSdata object? ...