iphone

have to save UITextfield's value to the NSUserDefault

I am a new comer to the iPhone world, I am having a question,I am having a login page in which 2 levels and associated 2 uitextfield,i have to save both the UITextfield's Values(inputt by user) to the NSUserDefault,and new time when we start application both the UITextfield should be filled with the values we hav input before....i am i...

submitting application to iPhone appstore

Hi Friends, I have an iPhone application which is POC for the client demo and want to upload to appstore. We have static data in search results. So is there any chance that appstore validate the data and reject application? Please guide me. Thanks in advance Regards, Malleswar ...

How to replicate UISearchBar scrolling behavior in Notes.app?

When you scroll a tableView down (Notes.app), the search bar stays fixed to top, but when you scroll a tableView up, the search bar is hidden. That's what I want. Looking at scroll indicator it appears that UISearchBar is a subview of a table's scroll view. But if I add a search bar to a tableView in Interface Builder, then it always sc...

@try - catch block in Objective-c problem

Hi, Why @try block do not work? It crash the app, but it was supposed to be catch by the @try block NSString* test = [NSString stringWithString:@"ss"]; @try { [test characterAtIndex:6]; } @catch (NSException * e) { NSLog(@"Exception: %@", e); } @finally { NSLog(@"finally"); } Thanks, Alex. ...

Multiple Actions to 1 button in iPhone sdk

What I'm trying to do is, I have a button that opens up the photo library so the user can choose the photo and then the photo is then displayed on another view (another .xib file). How can I do this? Right now, I have both the photo library action and change view action pointing towards the button and its crashing due to both actions hap...

How to store MKAnnotationViews with their corresponding MKAnnotation

I want to drop a bunch of pins for hotels on a map. I have a MKAnnotation class, and a view (MKAnnotationView) and I also have a class Hotel which has all information about the hotel In terms of design how should these two work together. Should I have 2 classes or should I just combine both into a single class that inherits from MKAn...

Populate iphone tableview from an SQLite database

Hello, I am trying to populate an iphone table view with values from an SQLite database. Lets say the table is as follows: Name      description     picture poodle    likes to growl      poodle.jpg cat          likes to meow     cat.jpg ...                   ...                   ... How would I ...

what if my iphone app is rejected?

Hi, What if my application is rejected from app store? Do I need to take gap to retry or need to pay for that? How many trails I can make for app submission? Please guide me. Thanks in advance. Regards, Malleswar ...

Access an array and get the stringvalue of an element...

Hi, i would like to know how i can access the name of an image when the syntax is something like that: NSArray* imgArray =[[NSArray alloc] initWithObjects: [UIImage imageNamed:@"test_01.png"], [UIImage imageNamed:@"test_02.png"], [UIImage imageNamed:@"test_02.png"], nil]; If i print out a specific index, i get the ad...

Does NSURLConnection block the main thread?

I'm using NSURLConnection in an iPhone application and the interface seems to slow down after sending initWithRequest: to my NSURLConnection instance. I'm not sure if this is occurring because my processing code is taking a long time to handle the response, or if it's because NSURLConnection is blocking the main thread. Can anyone conf...

Developing a mobile version of a site

I'm working on a large website project that makes heavy use of in-page graphing of data. To make the graphs interactive (the old paradigm was to post data to the server, have the server render the graph as a jpg, then send it back to the browser) we've started building the graphs in Java. It's a smooth system, but the website is still ve...

iPhone motion detection in idle mode

I'd like my audio recorder app to react to accelerometer events while in idle mode. Audio capturing works fine during idle mode, but my motion detection code never gets called, once the app enters in idle mode. Is it possible? thanks! ...

Best practices for core data store (sqlite) backup?

I am working on an update for my new iphone app (FlashCards++) which will include the ability to back up & restore the core data store (sqlite). I have been looking for good options for how to do this but there are very few resources about this. What are the best practices that you have found for doing core data backup? I'd like to keep ...

EXC_BAD_ACCESS unrecognized selector sent to instance

//adds a button to scroll list -(void) addNode:(NSString *) atitle{ UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [btn setTitle:atitle forState:UIControlStateNormal]; [btn addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside]; // handle touch [bu...

How can I show the keyboard when I start editing my email text field?

I want to show the keyboard when I start editing a text field.,i am having an email field in my view so that i want to show up key board when i begin editing it... ...

Cannot find the source of a memory leaks

Hello, I'm writing an application (basically its yet another iBooks clone) which consumes a lot of memory. Depending on the input data, it's memory footprint can go up to 70-80 MB (as MemoryMonitor states) or even more. It works fine for quite some time, but it tends to increase its memory footprint over time. So lets say you open a boo...

UITableViewCell with image background, ignoring touches?

Hi have setup a UITableViewCell from a nib file and everything is working as expected. However I decided it would be nice to add a UIImageView as a background to make the cell a bit more interesting, the only problem is that the new UIImageView is now stopping touches getting to the underlying UITableViewCell (i.e. the cells do not turn ...

How to extend OpenFlow menu-like style

If you know OpenFlow or CoverFlow, maybe you will have interest for this question. Latest codes is here http://github.com/tupps/OpenFlow What I wanna is make each image as button or menu, click it will enter another view, and also can come back by click some "back" button. Any clues to implement this feature ? Thanks ...

SQLITE_BUSY error

Hi everyone, I have a last probleme before finishing my application. I use SQLITE DataBase. Everything works perfectly on the simulator, but when i run the app on my Iphone with Dev provisionning profile, i got an error on the sql methods : I have a method that executes the following code : if(sqlite3_prepare_v2(database, sqlState...

XCode fails to deploy iPhone app to iPhone 3GS

Hey everybody. So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this numerous times already and it has never been a problem. However since the last test run I upgraded both my iPhone (iOS 4) a...