iphone

Iphone SDK how to save my score?

i have a integer called HighScore which is connected to highscorelabel . i have made it so when the user gets a high score it puts the score they got onto the label but i would now like to know how i can save it so that when the app is opened again it will still have the high score : this is my code for detecting when a high score is mad...

Get notified when UITableView has finished asking for data?

Hi everyone, Is there some way to find out when a UITableView has finished asking for data from its data source? None of the viewDidLoad/viewWillAppear/viewDidAppear methods of the associated view controller (UITableViewController) are of use here, as they all fire too early. None of them (entirely understandably) guarantee that querie...

Iphone app text badge length

I'm trying to put a text badge on my Iphone app with the undocumented setApplicationBadgeString method. The problem I'm having is getting the number of characters right. Sometimes I can fit characters, sometimes it replaces part of my string with dots. I've seen the same behaviour on UILabel too, if the text doesn't fit, it gets cut off...

iPhone MKMapKit application randomly crashing

I'm writing an MKMapKit app that allows the user to drag around an annotation. Everything seems to work for the most part, but it crashes every now and then with the following message: 2009-09-27 12:34:18.903 iParkNow![7181:207] *** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320 2009-09-...

iPhone SDK: To the iPhone/iTouch?

Hello, I have SDK 3.1 for iPhone. I have made an application, and i want this to put on my iPod Touch. How to? Is there a need of paying to Apple for a paid developer account? Or is there a way to NOT pay...? ...

How do you write for *all* phones/mobile devices simultaneously?

We create non-game programs that run on mobile devices; iPhones, Windows Mobile, Android, Palm WebOS and the like. Our main program is written in C# for Windows Mobile and we've been asked to port it to iPhone. We are not looking forward to: The learning curve to pick up Objective-C, XCode, and Cocoa Touch. The pain of maintaining tw...

Strange Behavior with MPMoviePlayerController When Programatically Changing Volume

In my application I am changing volume using the MPMoviePlayerController volume property (for fade effects and muting while leaving it still playing). Sometimes, sporadically, when changing the volume, the volume display (what you see when you use the volume buttons on the side of the iphone) will flash and disappear. Is there anyway ...

How to compile a dynamic library?

Hi, I've been searching the web for a couple of days and can't seem to find clear instructions on how to do this. SQLite doesn't have math functions like, sine, cosine, etc.. I found a library that extends SQLite and adds these functions, but I can't figure out how to compile the library. http://lhealy.livejournal.com/6306.html I've ...

Rebuild iphone app when updating ad hoc mobile provisioning file?

My iphone app is currently in Beta and I am distributing it to beta testers via ad hoc distribution. If I want to add new users to the beta can I just add their devices and download/distribute a new provisioning profile file, or do I need to rebuild the app with that new app and redistribute both the app and the provisioning profile fil...

Need Help on didRecieveMemoryWarning in iPhone

Hello all, I am developing an application which has almost 12 view controllers. Application has tabBar with 4 tabs means four view controllers and there are multiple views to navigate in each tab bar. Please note each tab has a navigationController with a rootviewController being its firstview. Application is an extensive database appli...

Testing iPhone in-app purchases in ad hoc distribution mode

My iphone application has in-app purchases and those have been tested using the iTunes Connect test user account. I'm now distributing it via ad-hoc distribution to beta testers. Is there any way to make the purchases "live" so that they can test them with their real iTunes accounts and not have to use the test account? I'd clearly li...

How to increment a selected table row on iPhone

Okay, I am about getting completely nuts here... :-( I've been trying for weeks now but to no avail. So if someone was able to help me with the following, that would be great! So here is what I'm trying to do. My app is basically a rss reader. The topics of the rss entries are displayed in a table view. Tapping on an entry opens a web v...

Arbitrary objects to handle actions?

Hi, My question may be a bit stupid, but why can't any object instantiated in IB handle, say, button click? I mean I'm able to add my own object to a xib, and link outlets to cotrols and control actions to object's method, but once I press the button everything just crashes (uknown selector). Do you guys have a hint around that? EDIT:...

Filter NSArray iphone

Hi, I use coredata to fill an array with data that is displayed in a tableview. In the tableview, I have two section. When a cell is pushed in section1, I want that cell to be moved to section2, and the other way around. Im not quite sure how to accomplish this, and I been sitting trying to figure it out for about 8 hours now. Th...

iphone downloading data from a database and then checking if the database has been updated

So I have an iphone app that downloads data from a shared database. It switches between views and when it returns to the "data" view I'd like to download only the new data in the database. What is the best way to achieve this? ...

Example or tutorial to deal with didRecieveWarning in iPhone

Hello all, I want to know if there is any tutorial provided by apple people or any blog where I can learn how to deal with memory and view releasing when you get didRecieveWarning in iPhone. ...

Only first UIView added view addSubview shows correct orientation

I've got three ViewControllers set up to handle three views. The problem that I'm having is that in the simulator the orientation is LandscapeRight (which is what I want), and the first view shows up correctly in that landscape view, but when I move onto the second and third views, they show up rotated 90 degrees counter-clockwise with ...

Accessing the Address Book in iPhone OS

Hi Everyone: I'm wondering if someone could direct me to an article that explains how to access the address book contacts in the form that Address Book on the desktop can read. Thanks for any help! ...

Geo-tagging a photo on the iPhone?

Hi everyone. A link or a bit of code would be much appreciated! I have an app that lets users take photos. Here's the code I use to create the jpeg file. How can I add a geo-tag to the photo's EXIF data, assuming the parameter info has a lat and lon? - (void) saveImage:(NSDictionary*) info { NSFileManager *fileManager = [NSFileMan...

Please help me in solving retain mystery in iPhone?

Hello all, Please consider the following code: //CallerClass.h @interface CallerClass : UITableViewController { NSMutableArray *dataArray; } @property(nonatomic,retain) NSMutableArray *dataArray; -(void) setData; //CallerClass.m @implementation CallerClass @synthesize dataArray; -(id)initWithStyle:(UITableViewStyle)style { ...