iphone

What's the quickest way to prepopulate CoreData?

My iPhone app uses CoreData and I would like to prepopulate the database. What's the best way to go about this? ...

Why my iPhone app has a delayed loading?

I noticed some iPhone apps give you the title screen instantly. Then there are some apps that gives you a black/blank screen for a brief moment. I have the latter issue, but its lasting about 2 seconds. I would like to display a PNG image (over 200 KB size) and a loading indicator view. My app is based on UIView. The specified a custom...

Pre-release checklist before building final version for App Store

Curious what practices people have learned before making their final build and submitting to the App Store? Aside from switching switching from Debug to Release & commenting out calls to NSLog what other basic and/or not so basic things should we be watching out for? ...

UITableView scrollToRowAtIndexPath problem

I'm trying to make my table view remember it's last position, so that after the app is run again, it will scroll to that position. to do this, in my viewWillDisappear: method, I get the first visible row number and save it to NSUserDefaults. then in my viewDidAppear I try to scroll to that row by sending scrollToRowAtIndexPath to the tab...

UITextField Being Non-Compliant Crashes App

Hi Everyone: I have a very simple class (shown below), however every time I run it, it returns: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key field1.' I am drawing this nib file to the screen in the following way: UIVi...

How do I determine which iPhone SDK I have?

I'm sure this is simple, but how do I determine which version of the iPhone SDK I currently have installed? ...

How to use facebook-connect invite friends iphone app ?

My app needs to invite friends from facebook conenct is this possibl e? Any examples ? Please help ! ...

How can interrupt a sound that is playing on the iPhone (SDK or MonoTouch)?

The sound is started using MonoTouch.AudioToolbox.SystemSound and I would like to stop the playback when I receive a specific event. ...

activate speakar of iphone programmitically

hi, all i want to make a call and activate speaker of iphone programatically. can any one tell me , how to activate and deactivate speaker mode of iphone through code. Thanks in advance..... ...

Switch Button not working in Cocoa-Touch

I am new to Objective-C and Cocoa-Touch development. I have an ON/OFF Switch on a view that is supposed to disable/enable hide/show another button on the same view, but for some reason it doesn't work sometimes, this is the behavior: 1st click: Switch to OFF, Other Button hidden => OK 2nd click: Switch to ON, Nothing happens => WRONG 3...

Framing problem with iPhone UIView subviews?

Hi, why can't I get my programmatically created UIScrollView (or plain UIViews) to sit where I want them? I am building a viewcontroller component that builds up a uiscrollview and adds it as a subview to placeholder UIView that was dropped in the design using IB. the main view, with UIView IBOutlet 'ibView' linked to the placeholder v...

SIGABRT on iPhone when changing xib

I've just finished off an app for the iPhone which, until today, ran fine on the iPhone simulator and actual devices. I tried changing the xib which is loaded in the applicationDidFinishLaunching method in my application delegate class - all I did was change the string in initWithNibName. When I launch the app on the simulator, the De...

How to render primitives in wireframe in Open Gl ES

Hi, I can see how to render wireframe primitives in open gl. By using glPolygonMode, however this call seems to be missing from Open GL ES. Does anyone know how to render primitives in wireframe on Open GL ES? Thanks Rich ...

mkmapview in landscape mode

is it possble to show map in lanscape mode? ...

iPhone App is leaking memory; Instruments and Clang cannot find the leak

Hi, i've developed an iPhone program which is kind of an image manipulation program: The user get an UIImagePickerController and selects an image. Then the program does some heavy calculating in a new thread (for responsiveness of the application). The thread has, of course, its own autorelease pool. When calculation is done, the seper...

how to create a path using coregraphics?

i want to create a path.something like i touch the screen and draw line in touchmove event.when line intersect from starting point.fill that path using any colour. now see in the image i've drawn a line.i just want to detect if line intersects again to start point.then fill that path with my own desired color.also i m using core graph...

Is Core Data more efficient than custom indexing for "as-you-type" searching ?

Hello everyone, Actually, I'm working on a Core Data based iPhone application. I have two entities which contain more than 200000 rows each and I'm experiencing some performance issues during retrieval of data. For each fetch request, I must wait between 1 and 2 seconds before getting results. I'm thinking of implementing a custom searc...

Tell if WebApp launched via URL or link on iPhone home screen

Is there a way of telling whether my Web Application has been launched from a button on the user's iPhone home screen? I want to display a "add this WebApp to your home screen" prompt if the user has accessed the WebApp via safari by typing in a URL. ...

ASIHTTPRequest: Encoding in post data

I'm using ASIHTTPRequest to send a form this way: ASIFormDataRequest *request = [[[ASIFormDataRequest alloc] initWithURL:url] autorelease]; [request setPostValue:foo forKey:@"post_var"]; How can I set the encoding of the nsstring foo?? The web receiving the form data expects the value in ISOLatin1 ...

Custom autorotation iPhone SDK

Hi! I want to implement my own way of autorotating the interface: Code: // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { NSLog(@"should!"); [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuratio...