iPhone应用程序书签实现
在iOS设备开发中怎么实现应用程序书签呀?还有就是浏览器首页导航页中的浏览过的网页缩略图是怎么实现的?
请赐教... --------------------编程问答-------------------- 没见过,都看见的是换屏幕 --------------------编程问答-------------------- 获取浏览过的网页缩略图,只需要从某个view显示获取数据,可以看成类似图片的数据;
系统提供了此API,
// get part of the image
- (UIImage *)getPartOfImage:(CGRect)partRect
{
CGImageRef imageRef = self.CGImage;
CGImageRef imagePartRef = CGImageCreateWithImageInRect(imageRef, partRect);
UIImage *retImg = [UIImage imageWithCGImage:imagePartRef];
CGImageRelease(imagePartRef);
return retImg;
}
上面的代码可以写成UIImage的分类。
补充:移动开发 , iPhone