iphone

Centering UITableViewCell subviews when row heights vary in a UITableView

I am using a slightly larger backgroundView image for the last row of my table. When the last cell is displayed, the imageView, textLabel, and accessoryView are all maintaining the same margin from the bottom of the cell, rather than maintaining their position in the center of the cell like they do on the other rows of smaller height. T...

can i modify an iphone app after being submited for aproval to apple?

Hi Can i modify an iphone app after being submited for aproval to apple? or I have to submit the app as exactly as is going to be on the app store? and then I cannot change anything? Thanks ...

How to add Daemon services and where i get best tutorial or best practices in iphone?

Thanks for helping me answering this question, I want to update the user's location and a timer frequently in my application in background. I have heard that the iPhone SDK only provides support for push notification services. Is there a way using the iPhone SDK to add Daemon services? Where can I find a good tutorial? ...

iPhone SDK Save State problem !

hi iam going to create an application and my app remember last user action ,, it means user find himself in the same page as he was last time he ran the application .here is my codes but doesn't work ! what is my problem ? .h #define HOME_VIEW 0 #define VIEW1 1 #define VIEW2 2 .m - (void)viewDidLoad { [super viewDidL...

IPhone UITextField not showing edit caret or clearing placeholder text when tapped

I have a window within an iPhone application, which is displayed modally to allow the user to enter their settings for a web service upon 'first run'. The text fields have helper text set, and when you tap them the keyboard shows and allows you to enter text. Unfortunately the text fields do not clear the helper text, show the edit ca...

GameKit: GKSession manual

Hello, I want to connect two devices using the GKSession, starting one as a server and the other one as a client. Using this configuration I can't use the GKPeerPickerController. I'm having problems for connecting the two devices: Using only bluetooth: impossible using WiFi: at least there are some data exchange between the devices b...

UIActivityIndicatorView or similar

Hi, Can anyone tell me how to achieve such loading message? is it some variation of UIActivityIndicatorView? thanks peter ...

iPhone application exit Question

I have an iPhone application which will exit on it's own after a user completes a particular action. I currently use exit(0) to leave the application and I have had no troubles with it until recently. I understand that this isn't the "right" way to exit an application but it is something that I want to do. The issue I am having is whe...

iPhoneHttpServer fails to start, after restarting multiple times.

Hi all, I am facing the same issue regarding restarting the server multiple times. ( on: http://code.google.com/p/cocoahttpserver/issues/detail?id=8&can=1 ) I am doing it in the viewWillAppear and stop the server in viewWillDisappear, then I also release the httpServer object. The problem is when I do this multiple times the serve...

Iphone - how to pass a parameter to animationDidStop?

I have this method... - (void) helloThere: (int) myValue { // I am trying to pass myValue to animationDidStop [UIView beginAnimations:nil context:[NSNumber numberWithInt: myValue]]; [UIView setAnimationDuration:1.0]; [UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:context:)]; [UIView setAnimationDelega...

Objetive-c async http request

I want to create an async http request. Where to start? Can you give me some good links to start this? I want to learn it. ...

UITextField issue

I have a navigation controller with a controller A having a UITextField. In another controller view B, I call a public method on the controller A to clear the text on the UITextField. In controller A, there's a delegate that is implemented: -(BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range re...

How to Draw some sample images on the iPhone?

I just want draw some simples circle on the iPhone, I think it is too complex to using openGL doing this sample job, but I find that the UIB don't have something like canvas, any suggestion on drawing sample images on iPhone? thx a lot. ...

Setting animationDidStopSelector: on UIView's animation delegate

I think I've been doing this wrong for the past year and a half of my iPhone development experience... I could use some knowledgeable clarification please! As you may or may not know, UIView properties can be animated quite easily using the beginAnimations:forContext: method, and wrap it up with a commitAnimations call. You can also se...

How can i present self as a modal view controller?

Hello, I am developing a game using OpenGL. I need to load some images from the web when the game starts (only if there are new ones available). And to do this I decided to create a view controller exactly like Default.png and do the loading there using a UIProgressView. I then added it as subview of my window. Load the images and onc...

maximal acceleration of UIAccelerometer

Hi, i want to track how fast my iPhone is moved. i checked the AceelerometerGraph Example App, where the maximum Amount was about 2.0 (in this app) i want to know how exactly i can track the speed of my moving iphone. in this example app the maximum amount is reached very fast. Is there a way to get better results ? Sry for my bad en...

Landscape Screen shifted to right in 20px

Hi guys. I am trying to rotate the screen on the iphone. For example, First state of screen : is "Portrait". Then it calls "Landscape" screen. Following code is used for making Landscape screen : - (void)viewDidLoad { [super viewDidLoad]; [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscape...

cocoa vs cocoa touch

I am learning iphone/objective-c development and I find a lot of code examples. Some of them though I only for MacOS. Can someone please explain to me what is the difference between Cocoa and Cocoa Touch (at a library level), so that I know what code will work and what will not work. Thank you. ...

UIscrollview derived classes

Which are the controls (or classes) derived from UIScrollView? ...

Is there a cross-platform network library for the iPhone?

Is there a cross-platform network library for the iPhone? Is ACE available for the iPhone? I would like the networking library to be available for iPhoneOS, OS X, Windows (XP, Vista, and Win7 would be nice but at least XP), Android, and Blackberry. ...