amazon s3 - Need to format and create an NSString -
I need to create an NSString which is equal, current year-month-day-hour (24) -minnet-seconds -Milisecand .filetype
This will plug in this NSstring
NSString * filename = [[NSBundle main bundle] pathForResource: [NSString stringWithFormat: @ "image% d", ImageNo] ofType: @ "png"];
try it
NSDateFormatter * df = [ NSDateFormatter new]; Df.dateFormat = @ "yyyy-MM-dd-HH-mm-ss-S"; NSLog (@ "% @", [DF StringFormat: [Date of NSDT]];
Comments
Post a Comment