摘要:
http://bbs.csdn.net/topics/390391289 阅读全文
摘要:
http://blog.csdn.net/marujunyy/article/details/8588688一.读取图片1.从资源(resource)读取[cpp] view plaincopyUIImage*image=[UIImageimageNamed:@"1.jpg"];2.从网络读取[cpp] view plaincopyNSURL*url=[NSURLURLWithString:@"http://www.sinaimg.cn/qc/photo_auto/chezhan/2012/50/00/15/80046_950.jpg"];UIImage 阅读全文
摘要:
http://blog.csdn.net/marujunyy/article/details/8592136iphone自己应用之间调用步骤:1)在plist文件中,注册对外接口 在xcode group&files 里面,展开 resources选择<app>info.plist 鼠标右击information property list ,然后从列表中选择URL types ,右击 add row 添加一个对象(item),右击item add row ,从列表中选择 URLSchemes 再右击添加一个对象(item1),将item1得值设置为:myapp ;这个my 阅读全文
摘要:
http://www.cnblogs.com/jiangshiyong/archive/2012/06/06/2538204.html 阅读全文
摘要:
1.NSDate*date=[NSDatedate];NSCalendar*calendar=[NSCalendarcurrentCalendar];NSDateComponents*comps;//年月日comps=[calendarcomponents:(NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit)fromDate:date];NSIntegeryear=[compsyear];NSIntegerrmonth=[compsmonth];NSIntegerday=[compsday];//时分秒comps=[calenda 阅读全文
摘要:
1.音频播放#import <AVFoundation/AVFoundation.h><AVAudioPlayerDelegate>AVAudioPlayer *player;- (IBAction)start:(id)sender { NSError *err=nil; player=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"charleston1925_64kb" ofTy 阅读全文