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...
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;
...
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...
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
...
Is there anyway that i can define an NSString. Inside of one class then access its value inside of another class?
...
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...
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...
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?
...
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...
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...
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]...
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
...
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
+...
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...
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.
...
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 ...
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.
...
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]...
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...
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?
...