iphone-sdk-3.0

iphone sdk 4 available only for snow leopard??

i am about to download sdk 4 for iphone development but on there website download is for snow leopard...Current version of my mac is Leopard 10.5.8... Wont i be able to install the sdk without upgrading to Snow leopard?? ...

Maintain the state of iPhone Application.

I want to maintain the state of iPhone application just like . i.e. When I do close and re-open the application it should display last visited screen. (The screen from where the application was closed.). Please suggest the efficient way to achieve this. Is there any API to get it done.? Please help. ...

.Net developer new to Objective-C. Need some critique and suggestions.

I've created one of my first apps using Objective-C. Being a noob, there's a lot of stuff I want to do, but don't know how to apply it in Objective-C. Please take a look at the method below (which I created from scratch) and tell me what you would do to make it better. Obviously I've duplicated code across 2 UILabels, but I'd like to sim...

UIAlertView display an informative statement with OK

I want to display a UIAlert to indicate to my users that something went wrong (maybe no Internet). I just need an OK button. Thanks for the help :) ...

CLLocationManager initializing, releasing, initializing and then releasing causes crash?

I have a use case where the application will automatically attempt to retrieve a location, the user can deny the permission, then the user can trigger the app to look for the location again (this time allowing it), but then the app will crash. Here's the basic code and use case steps, below, what am I doing wrong? @interface AppViewCon...

<video> works in the iPad, but not on the iPhone

Hello! I'm trying to embed an M4V video, it works on the iPad but not the iPhone. On the iPhone I get a play button crossed over (the can't play button). I am testing this on iPhone 3.0 (Original iPhone). Any help/advice would be great. My code: <video id="sr-video" poster='' controls=""> <source src='http://blip.tv/file/get/FIL...

detecting touch on a particular area of screen

I am trying to detect touch on a particular area of screen where if user taps I can do something like this: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint point=[touch locationInView:myView]; NSLog(@"pointx: %f pointy:%f", point.x, point.y); if (CGRectCo...

not able to open a url with openURL in [UIApplication sharedApplication] ??

i am trying to open a url (http://c22.smaato.net/oapi/lp.jsp;jsessionid=E253E547A55290CA553F493659433DBF.c22) on a button through the following code NSString *strs=[[NSString alloc]initWithFormat:@"%@",[linkArry objectAtIndex:0]]; NSURL *urls = [NSURL URLWithString:strs]; [[UIApplication sharedApplication] openURL:urls];...

Possible to add another enum item to an existing enum type

Hi all! I wonder, whether it is possible to add/append another item to an existing enum type (part of a framework)? Something like this: We have the enum type typedef enum { UIModalTransitionStyleCoverVertical = 0, UIModalTransitionStyleFlipHorizontal, UIModalTransitionStyleCrossDissolve, UIModalTransitionStylePa...

IPhone 3, iPhone 4, and iPad orientation handling

I have a view with a tableView and a mapView. In portrait mode, I want the mapView to occupy the top 60% of the screen, and the table view, the bottom 40%. In landscape, I want the mapView to occupy 45% of the screen on the right, and the tableView 55% on the left. Thus, I thought that something like this ought to work: -(void)wi...

Organizer will not accept Provisioning Profile, or Run App on Device, states version of OS is too Old, but it matches the latest?

Organizer states, “The version of iPhone OS doesn’t match iPhone OS supported for development”, but this is the message that I get... But as you can see, I have 4.0 (8A293) on iPhone, and the same Xcode OS (8A293). So why is it having an issue? My Organizer indicator color doesn't turn green like it used to either, only get orange. T...

using tableview for moving to a particular part of the page in uiwebview

hi, i have a uitableview which will load a uiwebview with a long page (static page inside the app). I want to know whether it is possible to move to the center of the page on clicking the cell in the uitableview. Something very similar to using hyperlinks to point to different location of same HTML page. ...

Cocoa Asynsocket multithreaded problem

Hi all, I'm using Cocoa AsynSocket class (http://code.google.com/p/cocoaasyncsocket/) in my iPhone application which interacts with a remote server to send and and receive data. I have 1 problems. When I create the AsynSocket instance from a thread other than the main thread it doesn't get connect. didConnectToHost:Port delegate doesn...

logging framework for iphone

Hi, Is there a logging framework for iPhone ? Which could be useful to the developers when the application crashes. Or kindly suggest me alternate ways for doing the logging stuff on iPhone. ...

spotlight search in the application

Hi, Is that possible for spotlight search of iphone to take the contents of my application and show as search results ? If yes how to accomplish ? ...

NSFetchedResultsController ERROR: The fetched object at index 248 has an out of order section name

trying the solution here: http://stackoverflow.com/questions/1741093?tab=newest#tab-top I'm using a transient property and the category solution and it seems to be working right up until the index char starts to wrap around to the A's again, not sure why it's doing that, just logging what the category/transient getter is returning for u...

MPMoviePlayerController play error on iPad

Hello, I'm writing an app that will be playing videos alot using the MPMoviePlayerController on the iPad. The problem is the app was working fine and playing the videos when I stopped working about 15 hours ago but now the videos do not play. The MPMoviePlayerController will show the first frame from the video, and in full screen view ...

OK to use controller as delegate and data datasource for uitableview in iOS

Is it ok to use your view controller as your uiview's delegate, it seems to make sense to be as they are similar in nature. More specifically is it OK to use your uitableviewcontroller as your uitableview's delegate and data source? ...

Hide/Show iPhone Camera Iris/Shutter animation

I am not able to Hide the iphone Camera shutter opening animation for my app. I am using UIImagePickerController to access iphone camera and using my own overlay controllers. Is there a way to remove the initial shutter(also known as Iris) animation as the camera starts. Thank You ...

parse xhtml in iphone sdk?

Hello all, i want to parse a xhtml file and display in UITableView. what is the best way to parse xhtml file so that i could be able to display as it is shown in browser. here is a sample xhtml source <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"...