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