iphone

Can I change the orientation of the in-app purchase login view?

I was wondering if it is possible to change the orientation of the in-app purchase login view. In my app, all of the messages coming from the iTunes store show up oriented according to my app settings. My app is in landscape mode, and the messages show up likewise. However, when the user needs to login to iTunes to initiate the purcha...

How to load the localized nib?

Hello, I have localized my nib files, I've got both English and Polish version: In my code I load the nib: newPostUIViewController = [[NewPostUIViewController alloc] initWithNibName:@"NewPostView" bundle:nil]; Unfortunately when I run my app in Polish mode I still see the English version of the UI. Do I need to do something more ...

Prevent a UISearchDisplayController from hiding the navigation bar

Whenever a user begins editing a UISearchDisplayController's search bar, the search controller becomes active and hides the view's navigation bar while presenting the search table view. Is it possible to prevent a UISearchDisplayController from hiding the navigation bar without reimplementing it? ...

iPhone - MapKit - Searching locations and moving annotations

I want to make an app that partially mimics some of the behavior the standard map application has. This has proven difficult. First of all, I don't understand how you make annotations movable. How exactly do you do this? Second: how do you search for locations? Thanks ...

Can't manage to find any answers to the last bug my app has ... [challenge inside ;)]

Hi everyone, I finally get no leaks in my app but I still manage to get my app to crash from time to time ... it is really rare but it pisses me off ;) Here is what I get : 2010-05-11 19:36:29.487 Infonul[2457:20b] *** -[NSCFString _setParserError:]: unrecognized selector sent to instance 0x3cddb80 [Session started at 2010-05-11 19:...

presentModalViewController NOT animating when showing a TTMessageController

I have a subclass of TTMessageController that shows ... BUT it is not animated even though it should be. The code that displays the modal view looks like this (where PostToWebMessageController is the subclass of TTMessageController: if (self.toWebMsgController == nil) { self.toWebMsgController = [[PostToWebMessageController alloc] ...

Cannot figure out how to get rid of memory leak

I'm trying to test for memory leaks in my iphone and I'm not having much luck getting rid of this one. Here is the code that is leaking. - (id)initWithManagedObjectContext:(NSManagedObjectContext *)aMoc delegate:(id)aDelegate runSync:(BOOL)aRunSync { if (self = [super init]) { self.moc = aMoc; self.settingsManager ...

iphone calls both if and else at the same time?

Hi, I need to determine what file type a file is and then perform a certain action for it. this seems to work fine for some types, however all media types such as videos and sound files get mixed up. I determine the file type by doing this: BOOL matchedMP3 = ([[rowValue pathExtension] isEqualToString:@"mp3"]); if (matchedMP3 == ...

iPhone scrolling the view up when keyboard is open

I understand that this problem is incredibly common and I have read through quite a few answers but am having trouble understanding how the code works. This works: -(void)textFieldDidBeginEditing:(UITextField *)sender { if ([sender isEqual:txtLeaveAddyLine1]) { //move the main view, so that the keyboard does not hide it. if (s...

Effect of using webview in app on app rating

If I use UIWebView to render some richtext content and some dynamic web content in my app, then is there a possibility of adverse effect on my app rating in approval process? ...

Webkit debugging tools

Hi, What tools can I use to debug mobile webkit sites? Is there a better tool than "Firebug for iPhone" or is "Firebug for iPhone" pretty much the best tool out there? Thanks, Tee ...

UIWebView finishes too fast

I'm loading a biggish (and javascript-heavy) page into a UIWebView, and I want to add a UIActivityView to spin while it thinks. Problem is, my - (void)webViewDidFinishLoad:(UIWebView *)webView method gets called quite a while before the rendering actually happens. Enough so that my spinner (which set to hide when stopped) never actually...

How do I set the current point in a CG graphics context?

When running the code below in the iphone simulator I get the error : CGContextClosePath: no current point. Why is the current point not being set? Or is the context not set to the correct state? CGContextBeginPath(ctx); CGMutablePathRef pathHolder; pathHolder = CGPathCreateMutable(); //move to point for the initial point ...

Program received signal: “0”. Data Formatters temporarily unavailable

Hi all, I'm working on an iPad app that downloads a CSV file from the web and parses the file into a NSMutableArray. (I'm using the code from http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data suggested in another post). When I run in the simulator, everything works perfectly, but when I run on the device, I get the...

iphone submit an application update

hi all, i want to submit an update of my application. I want to change all my interface and i spend less time making a new application and import my code. is possible make an update in this way, using my distribution profile and incrementing my version number? or i must change something else? Thank's ...

Having trouble with event creation using the events.create API with the iPhone SDK

I'm using the FBConnect library in my iPhone app, and I'm trying to create Facebook events. After getting a valid session and verifying permissions, I'm using events.create and getting what looks like a valid event ID back from FB in a success response. Oddly the event isn't showing up on my account's Events page either in current or in ...

Changing resource file in new version of an app

Hi, I'm working on an update for an already existing iphone app. The existing version contains a .sql database file which is used in the app. I would like to use a new version of this file in the update of the app. On the first startup of the existing app the .sql file is placed in the caches directory of the users iphone. From what I c...

iPhone App Crash - Error ?

Hi there.. Im new im making in making iPhone apps so i have no idea what this error means ? I saw another post with this error but i couldn't figure out how to get it right.. i get this error: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-c...

Clear Absolute Cache on Application close Ipad app

I am saving Images in NSCachesDirectory in a App. At the end of app execution i would like to clear all temporary cache. Is there a way to force clear all cache on application exit. I do realise the local folder keeps cache for 3 days..but my requirement is to force clear the Cache. Thx ...

Scroll view to bottom while keyboard is hiding

Hi! I'm using a scroll view to move my view and show certain text fields (that otherwise would be hidden) when the keyboard shows. I basically resize the scroll view to make room for the keyboard, and then scroll up the view smoothly with "scrollRectToVisible", which works perfectly. After that, I can scroll and edit the rest of the te...