I have created an iPhone project where I need to show the current time of the day. In my application, one of these views has a text field and when the views appear, the current time of that moment should be displayed.
I am a new iPhone developer and I do not have any information about it. Anyone can help me
You can put it in your viewDidLoad method:
NSDateFormatter * Formatter = [[NSDateFormatter alloc] init]; [Formatter setDateFormat: @ "HH: mm: SS"]; TextField.text = [Format string string: [date of NSDT]]; [Format release];
Comments
Post a Comment