从网页加本体图片-NSString*boundle=[[NSBundlemainBundle]resourcePath];[web1loadHTMLString:[NSStringstringWithFormat:@"<imgsrc='http://fei263.blog.163.com/blog/0001.png'/>"]baseURL:[NSURLfileURLWithPath:boundle]];从网页加载图片并让图片在规定长宽中缩小[cell.imgloadHTMLString:[NSStringstringWithFormat:@&qu Read More
posted @ 2013-04-24 22:03 夏了′夏天 Views(154) Comments(0) Diggs(0) Edit
//创建一个基于位图的图形上下文并指定大小为CGSizeMake(200,400)UIGraphicsBeginImageContext(CGSizeMake(200,400));//renderInContext呈现接受者及其子范围到指定的上下文[self.view.layerrenderInContext:UIGraphicsGetCurrentContext()];//返回一个基于当前图形上下文的图片UIImage*aImage=UIGraphicsGetImageFromCurrentImageContext();//移除栈顶的基于当前位图的图形上下文UIGraphicsEndImag Read More
posted @ 2013-04-24 21:57 夏了′夏天 Views(104) Comments(0) Diggs(0) Edit
UIAlertView*theAlert=[[[UIAlertViewalloc]initWithTitle:@"Atention"message:@"I'maChinese!"delegate:nilcancelButtonTitle:@"Cancel"otherButtonTitles:@"Okay",nil]autorelease];[theAlertshow];UIImage*theImage=[UIImageimageNamed:@"loveChina.png"];theIma Read More
posted @ 2013-04-24 21:54 夏了′夏天 Views(114) Comments(0) Diggs(0) Edit