iphone-sdk-3.0

How to search and locate (annotate) in MKMapView?

Hi, In my application I have to search five nearest locations of "medical services" using the user current location and annotate those locations on my MKMapView. Can any one tell me how to search with a particular keyword (eg. medical services, garages) by using user current locations and annotate onto the map and when the user taps on...

how to find all the methods available in UISearchBar

Hi, I am trying to create a customized UISearchBar. I am not able to find all possible methods using documentation. Is there way to find all the available methods ?. ...

how to control the index displayed on the tableview

Hi, I am able to show a index on the right side similar to songs view on the ipod. During searching the index bar gets minimized automatically. And when i go back to my actual table view the index size is small and it displays only few alphabets. How to stop the resizing of this ? ...

Animating an Image

hi friends, I m creating a game, in that i want to use some animation, but i m new to animations. I want to create an image ,as soon as i click on imageview, the image should come in bouncing manner as if it is a Ball, so is it possible to do so??? The image is predefined for the game.and it must come after touch begin event occures, can...

ipad - dismissing a UIPopoverController

I have a button inside the content of a UIPopoverController. This button runs a method called myAction. MyAction has the form - (void) myAction:(id)sender so, myAction receives the id of the caller button. Now, inside this method I would like to dismiss the UIPopoverController, but the only thing I have is the ID of the caller butt...

NavigationController becomes nil after popToViewController

Hi, My navigationcontroller becomes nil after my "[self.navigationController popToViewController: [self.navigationController.viewControllers objectAtIndex:0] animated:YES];" this is my scene: InsertViewController - > [self.navigationController pushViewController:choiceViewController animated:YES]; ChoiceViewController -> [self.naviga...

NSUserDefaults always returns 0, in Simulator and Device

I have a settings bundle in my iPhone app, with the following PList: Type: PSMultiValueSpecifier Title: Within (Kilometres) DefaultValue: Number: 1 Titles: Array: Item 1: Number: 1 Item 2: Number: 2 Values: Array: Item 1: Number: 1 Item 2: Number: 2 Key: String: km Then in my code i have: NSUserDefaults *defaults = [...

How to add Scrolling to a layer in cocos2d ?

I have a text in my game which is written in cocos2d. The text moves up and down while we touch and move it up or down. The text is moving. But it is not getting to original position while touches ended. So, I wrote cade for touches ended for text to get original position. But problem is i could not read the entire text now. What I need ...

iphone - double tap fail safe way

I am trying to detect double taps on a view, but when the double tap comes, the first tap triggers an action on TouchesBegan, so, before detecting a double tap a single tap is always detected first. How can I make this in a way that just detects the double tap? I cannot use OS 3.x gestures, because I have to make it compatible with old...

Array of ImageView

hi, I m making a Shooting game, in that I want an array of ImageViews , so that for each new level the bullets can be Disappear and the view will be shown from the initial level. SO if Any one know how to store imageviews in an array kindly tell me... regards viral.. ...

Load PDF into layer offscreen

Is there a way to load a PDF into a CALayer (or CATiledLayer) offscreen and then just display it when required? The solution should also support zooming at the required resolution. Update Just to clarify - I want the pdf to remain vector based. ...

iPhone UIScrollView, Slow down the scrolling

How do I add some extra drag to the UIScrollView physics. It scrolls just a little too fast for what I am doing. (I don't want to disable altogether, I still like the rubber band effect when you get to the end or beginning of the view.) Is there any way to slow it down? ...

Is it possible connect USB DRIVE to iPhone (using data cable and EAAccessory) ?

Hello, all! Is it possible connect USB FLASH DRIVE to iPhone cable and onIphone reading data from this drive ? thanks, ...

What iPhone OS APIs could I use to implement a transition animation similar to the iBook page flip transition?

I'm building an iPad app that will have multiple paper pages and I'd like to implement a page transition affect that is similar to the animation you see when you turn pages in the iBooks app on the iPad. A few questions... Is that animation readily available somewhere in the UIKit API or would I have to implement it myself? If I have ...

Border around UITextView

I want to have a thin gray border around UITextView, I have gone through documentation but couldn't find any property there. Please help. ...

Stack A scroll view onto UIImagePickerController

I'd like to first say I'm a little new to anything but tutorial examples, so sorry if this is a daft question. I have modified some sample code ever so slightly so that instead of closing a UIImagePickerController once the user has picked an image it processes it in the background. This seems to work quite well, but once the user has...

What does the 'a' prefix represent in aString?

I'm just looking at NSString.h and wonder why some method declaration args use (NSString *)string; while others use (NSString *)aString. What are the conventions practiced here? Thanks for any insight. ...

Capture frames from live video taken from a camera in iphone

Hi Friends, I want to get the frames from a live video been seen when the camera is opened from my application. Is it possible in latest SDK (3.1) for iphone.? Any hint or direction would be highly appreciated Note: I dont want the user to record the video and then get the frames later on. Thanks in advance. ...

How to set the the height of cell progamatically without using nib file ?

This is my program - (void)viewDidLoad { [super viewDidLoad]; // Uncomment the following line to display an Edit button in the navigation bar for this view controller. self.title = @"Library"; self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleBordered targ...

Sqlite3 query in objective c

-(IBAction)ButtonPressed:(id)sender { const char *sql = "SELECT AccessCode FROM UserAccess"; NSString *sqlns; sqlns = [NSString stringWithUTF8String:sql]; if([Password.text isEqual:sqlns]) { NSLog(@"Correct"); } else { NSLog(@"Wrong"); ...