iphone

How to scale icons by zoom in a MKMapView?

How can I have the size of my icons scale with zoom in a MKMapView? As far as I can tell there is no way to do this? The only thing I can think of is to have the MKMapView a subview of some UIView, and catch all of the user input in this parent view, scale the images on zoom and relay to the subview. ...

UITableView problem with "Inset" property

My navigation-based-app's background looks like a paper on a cork bulletin board. My RootViewController is, of course, an UITableView. I want to have the TableView end on the paper and not on the cork. Some pictures here to explain it better: This is how it looks when I scroll to the last row of the TableView. For this, I'm using the ...

Transitioning to a view of unknown type in a navigation-based iPhone app

In my iPhone application, a user selects an item from a UITableView to choose a resource to view. The UIViewController subclass required to handle the resource is not known until the resource is retrieved, which may take a few seconds. In response to the selection action, I push a "loading" view controller on the nav stack. That cont...

Simple Animations [iPhone]

I have a few UIButtons that I'd like to trigger short 5-10 frame animations when pressed in the middle of the screen along with other nonrelated stuffs. Can I just drop one UIImageView in IB and update it, somehow, programmatically? It doesn't need to be overly complex, I don't even mind if it's hard coded, for now since it's such a smal...

Create a class at runtime - Why do NSClassFromString AND objc_getclass return nil ?

I've tried using both: NSClassFromString and objc_getclass to return a class, so I can create it at runtime, but both functions return nil for some classes, for example "TestClass". Note that NSClassFromString works for me for 99% of classes. If I add [TestClass class]; before I call NSStringFromClass or objc_getclass it, it work...

double tap in UIButton

hi Guys, I created a UIButton programmatically and I want to create an action to handle a single tap and double tap for that button. My question is how can I create this action, should I create separate action methods for this two events of just a single action? Can you please provide a very basic code for this events? Thanks a lot. ...

iPhone Pull Down Refresh like Tweetie

I am trying to find an example of placing an element above the Table View outside the normal scrollable region. How would I do this? An example would be what the Tweetie 2 app for the iPhone does to refresh tweets. Sample code would be extremely helpful. ...

How to debug "exited with code 5" on Simulator

Is there a good way to debug "exited with code 5" runtime error on the iPhone Simulator? I know this must be a real NOOB question, but any tips would be appreciated. Thanks. I am trying to follow along with the "Build your First iPhone App" tutorial on DevCenter and it seems that I started getting the error when I tried to customize ...

UINavigationBar subview is hiding the right UIBarButtonItem

In the root table view controller I add a subview that holds an image: [self.navigationController.navigationBar addSubview:imageView]; Then in a child table view controller that I push onto the stack I set a right UIBarButtonItem: UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"Right" style:UIBarButtonItemSty...

Set my locale in iphone

Hi All, I am doing an application which user count down timer. The timer works fine with my simulator. but when i install it in to my device the timer is showing some time difference. Hope its the problem with locale. Can any one provide me some help to fix this problem.?? Please... Thanks in Advance, Shibin ...

How do i put a button that clicks into a new View that is not clickable by one of the Tab Bar Items?

Hello all, i set up a tab bar application and am having problems. I wanna add 1 button in the "First View" that clicks into another view(that is not available from the tab bar item) but am having problems.. What code do i put into FirstViewController.h and .m? Do i have to create a new xib file? ...

How to wait for location manager for the current location ?

Hi all, I am developing an iPhone application in which I want to show nearest restaurants based on the current location For that In the applicationDidFinishLaunching I am doing this : self.locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccurac...

iphone Cancel Asynchronous NSURLConnection

I ran into the situation where my class is making one asynchronous web call and the user requests another one (by moving a map) and can't seem to properly cancel the NSURLConnection. I have seen some solutions to manage multiple async calls, but I do not want to do that because once the second request is made I no longer care about the ...

Two buttons needed at navigationItem.rightBarButtonItem. Image not getting displayed

Hi, I have to have two buttons on the right side of the navigation bar. So i created a tool bar and added two bar button items to its content view. Like below. UIBarButtonItem *shareButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"share-icon-32x32.png"] style:UIBarButtonItemStyleBordered ...

MAPKIT: Blue dot just stopped animating! User location

This seems pretty simple and gives a great graphics effect, the animated blue dot with the pulsating circle. This code worked perfect for me. Then just STOPPED. Strange! Can't figure it out. Can't remember changing one line. Just no longer pulses ... even reinstalling app on phone. Hmmmmm, does it stop if it finds a perfect location? ...

UIImagePickerController 3.0 takePicture function .

How can i use it takePicture method to programatically capturing image.I want to take picture after 5 sec or want to set a timer on camera.Is it possible ti take picture without press take button. ...

App Store submission: Developer reject

I have submitted the binary file of my application to apple on appstore. But i dint configure the APP ID i mean i forgot to do that. Does it will affect my application for apple submission. Should i do a developer reject and if i do that Can i upload the new binary .. Please reply me as soon as possible i dont want ma application to g...

Google map in iphone

Hi, I am developing an iphone application which uses google Api to draw polylines on map and search area based on the selected area.I caught the click event in google map to show a busy indicator and caught the lineupdated event in to hide the busy indicator,to maintain user experience in slow connectivity.Now the problem is that ,i cant...

How to share constants between Interface Builder and the code ?

I wonder if there is a way to use constants in Interface Builder, in order to avoid manually setting the same color at different places for example (it could be a very tedious job sometimes...) Currently I set the color in the code and use #define to setup the color, but obviously IB can't use #define... ...

iPhone + UITableView + row height problem

Hi, I am setting the row height of my UITableView using following code [tableView setRowHeight: 100.00]; I am using the single line as separator in the UITableView. Eventhough setting the height above, height of row does not get change. Please help me ...