I’m new to iphone developing. In my application i assigned date value to a label, but the label value did not change when the application gets executed.
NSDate *dateTemp = [[NSDate alloc] init];
cell.newlabel.text=dateTemp;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can only put NSString into a UILabel. To display an NSDate in a UILabel you have to convert it to NSString first. For that you’ll need to learn about NSDateFormatter.