从网页加本体图片-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(160)
Comments(0)
Diggs(0)
//创建一个基于位图的图形上下文并指定大小为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(110)
Comments(0)
Diggs(0)
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(119)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号