¡@

Home 

2014/10/15 ¤U¤È 10:07:48

iphone Programming Glossary: d_

How to record a video clip in ipad app and store it in documents folder

http://stackoverflow.com/questions/15475315/how-to-record-a-video-clip-in-ipad-app-and-store-it-in-documents-folder

NSData videoData NSData dataWithContentsOfURL videoURL NSString videoName NSString stringWithFormat @ student_ d_ d.mp4 stud_id imgVidID videoPath documentsDirectory stringByAppendingPathComponent videoName NSLog @ video path @ videoPath.. videoData NSData dataWithContentsOfURL videoURL NSString videoName NSString stringWithFormat @ student_ d_ d.mp4 stud_id imgVidID videoPath documentsDirectory stringByAppendingPathComponent videoName NSLog @ video path @ videoPath videoData..

Drawing in CATiledLayer with CoreGraphics CGContextDrawImage

http://stackoverflow.com/questions/4067512/drawing-in-catiledlayer-with-coregraphics-cgcontextdrawimage

of imageNamed here because we don't want UIImage to cache our tiles NSString tileName NSString stringWithFormat @ @_ d_ d_ d imageName int scale 1000 col row NSString path NSBundle mainBundle pathForResource tileName ofType @ png UIImage image.. imageNamed here because we don't want UIImage to cache our tiles NSString tileName NSString stringWithFormat @ @_ d_ d_ d imageName int scale 1000 col row NSString path NSBundle mainBundle pathForResource tileName ofType @ png UIImage image.. image NULL CGDataProviderRef provider NULL NSString filename NSString stringWithFormat @ img_name_here 0.0f_ d_ d ceilf scale 100 col row NSString path NSBundle mainBundle pathForResource filename ofType @ png if path nil NSURL imageURL..

NSDate substract one month

http://stackoverflow.com/questions/4611390/nsdate-substract-one-month

year NSInteger month dateComponents month calendar release NSString pdf_name NSString stringWithFormat @ file_ d_ 02d.pdf year month greets endo EDIT My solution NSCalendar calendar NSCalendar alloc initWithCalendarIdentifier NSGregorianCalendar.. if month 1 year month 12 else month calendar release NSString pdf_name NSString stringWithFormat @ file_ d_ 02d.pdf year month iphone objective c nsdate nsdatecomponents share improve this question This sample code is from..