iphone

Difference between "terminating" an app , opening the "task switcher" and "auto lock"

Hi there, I'm aware of the fact that the title of this thread is substandard. Anyhow, here's the issue I'm facing: My App displays a tableView with time-relevant content (content can get "old") and therefor updates on a regular basis by calling a web service and parsing its xml answer. so, in order to not display "out of date" informa...

iPad MPMoviePlayer hiccups

I'm working on an iPad app, it has a few videos within views using the MPMediaPlayer framework. Videos are working nice but on viewLoad there is a flashing of the video area when it loads the video. It shows black for a split second then starts playing. I was thinking of using an NSTimer on viewDidLoad to unhide the hidden video view, ...

iphone : in-app purchase bug on OS 4.0 processing one transaction two times ...

Hi, I am having a strange issue on OS 4.0. i am doing in-app purchase for a consumable product. i start a transaction. my transaction is complete. i provide the content successfully. and transaction is removed from queue. then i exit application. and wait for 1 or 2 minute. and run application again. when i run application again. an...

add image to UIBarButtonItem for UIToolbar

Hi, I am trying to add an image to the UIBarButtonItem which I have to use in a UIToolbar. I have managed to read the image and even get it to display with a UIImageView, but when i add it to the UIBarButtonItem and then add that item to the UIToolbar, the toolbar just displaces a "Blank White" space the size and shape of the image t...

navigation bar background image

how can i set an image into the background of the navigation-bar, so that is also in the background of the back-button ? now i have an image with a with of 320 pixels, but it shrinks that image so, that the left back-button is the standard-button and on the right side there are 5 pixels in the standard-blue. i want that this image is ove...

can we start a animation, stop it and reassign new animation array to animationImages?

please read the code in my viewcontroller -(void)StartAnimation { if (self.myimgarray == nil) { self.myimgarray = [NSMutableArray arrayWithCapacity:0]; } UIImage *img; for (int i=0; i<=17; i++) { img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"a_expand_%d.png",i] ofType:...

sqlite3_bind_text not binding the values

Below is my code NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *dbPath=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES); NSString *documentsDir = [dbPath objectAtIndex:0]; NSString *writableDBPath= [documentsDir stringByAppendingPathComponent:@"mydb.sqlite"]; success = [fileManager ...

iPad UIModalPresentationPageSheet with navigation controller.

Hi All, I have a navigationcontroller and on click of a row i want a sheet self.modalPresentationStyle=UIModalPresentationPageSheet; that comes up and takes the middle space of iPad (transparent). This works fine but what i want is this sheet which is itself a viewcontroller having table view within it. Now when the user clicks on th...

Custom UIView and UIViewController best practices?

I currently have a simple iPhone app that loads a custom subclass of UIView. There's only one controller at the moment for the whole application, although there are several UIViews for separating the program logically. My current structure looks something like this: mainView : UIScrollView \__ has one subView : myCustomUIView : UIV...

uipickerviews inside table cell not selectable

Hi, I have a table cell for which I set its contentView to a custom view that contains one label and a number of uipickerviews. My problem is that only the first picker view is selectable, while all the rest are not. When I click on any of the not-selectable picker views, the table cell gets selected instead. Below is my code: // Ins...

NSUserDefaults wiped out after several sessions, Possible?

Hi all, I'm storing certain values in NSUserDefaults, but after several sessions, I find nil values for those variables whenever I'm retrieving them. It's nowhere that I'm resetting them in my whole program. How can this happen? Thanx in advance. ...

2 lines mean it won't run on iPad

We have a project that runs fine on OS4 but we're having problems getting it to run on iPad 3.2. Base SDK is 4.0 and Deployment target is 3.2. The code crashes on the iPad simulator (and device) before it has even started, with the error "Data Formatters temporarily unavailable" It seems to run okay if I take 2 lines out... A...

iphone 3.1 based code on iphone 4

Hi, I did a very small app which downloads files from a server. iPhone 4 supports background processing of the app that is the app goes in background when user switches it. Here is my question, if my small app developed on iPhone 3.1 based stuff (build to phone by changing to iOS 4) is allowed to run in background, will my app still c...

What is the best iphone OS / SDK version to target right now?

Hi All Just starting out with my first commercial app for the iStore but dont have enough experience to know which OS to target. My guess would be iPhone OS 3 but what are the implications now that version 4 is released? also, should I develop for SDK 3.2 as being the most up to date version of OS 3 or target version 3 specifically? ...

iPhone, parsing HTML with TouchXML

Hey guys, has any of you some experience with parsing HTML with the TouchXML lib on the iPhone. I would like to parse some html and therefore try to do the following self.parser = [[CXMLDocument alloc]initWithData:self.html options:0 error:&error1]; if (error1) { NSLog(@"Error: %d", error1); } NSError *error; NSArray *resultNod...

UINavigationController Method Issue

Is there a way to customize the method that is called when someone touches the back button in my UINavigationController? I need to check which nib is being loaded so I can configure the UINavigationController properly (mainly set the navigation bar to hidden for one view). ...

add image to UIBarButtonItem using initWithImage:(UIImage *)image

I would like to know how to set an image to a UIBarButtonItem which will then be added to a UIToolbar, by using InitWithImage when creating a UIBarButtonItem. I am doing the following, but it creates a blank whitespace where the image should be on the UIToolbar UIImage *image = [UIImage imageNamed:@"6.png"]; UIBarButtonItem *systemIte...

toggle UIButton-state when pressing, like a switch

-(void)setState:(id)sender { UIButton* button = (UIButton*)sender; BOOL buttonBool = ([button state]==selected : YES ? NO); [sender setSelected:buttonBool++]; } this is my idea, but i cant figure out the actual state of the button calling the funktion. any button, that calls this funktion, should be toggled between default...

In iOS4 applicationWillEnterForeground may get called before applicationDidEnterBackground and it makes problem

Hi, In iOS 4, if I close & re-open my app rapidly then (after applicationWillResignActive invocation) there is a chance for applicationWillEnterForeground to be get called well before the applicationDidEnterBackground and results in a black blank screen as because the app entered into background state immediately after the foreg...

How to Map one image to Another in iPhone

Hey All, I want to map one image to another.I have a template of an image and i want to fix my face on that template picture face.so i have cut the face of that template picture and when i drag my picture on that template picture only my face will come on that template picture face.so please help me. ...