![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习片段
单线_程
这个作者很懒,什么都没留下…
展开
-
注册你app所支持的文件类型以及Document interaction案例
概要点:1. 你要注册(向ios/mac系统)申明app能够打开某种类型的文档,这样其他app才可能通过DIC(document interaction interface)把文件转给你app来打开2. 注册就要在plist里声明: document types(我猜的),然后打开文本模式一看,果然对应了CFBundleDocumentTypesCF转载 2014-01-07 09:36:53 · 775 阅读 · 0 评论 -
改变UIImage的透明度
//设置图片透明度+ (UIImage *)imageByApplyingAlpha:(CGFloat)alpha image:(UIImage*)image{ UIGraphicsBeginImageContextWithOptions(image.size, NO, 0.0f); CGContextRef ctx = UIGraphicsGetCurrentConte原创 2014-06-30 16:44:20 · 4462 阅读 · 0 评论 -
iOS 画线
CAShapeLayer *lineShape = nil;CGMutablePathRef linePath = nil;linePath = CGPathCreateMutable();lineShape = [CAShapeLayer layer];[lineShape setLineWidth:4.0f];[lineShape setLineCap:kCALineCapRoun原创 2014-06-30 16:46:13 · 606 阅读 · 0 评论 -
UITableView Cell 点击时的带颜色背景效果,而不是选中颜色效果
- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ // cell 点击时的带颜色背景效果,而不是选中颜色效果 [self performSelector:@selector(deselect) withObject:nil afterDelay原创 2014-06-30 16:48:16 · 655 阅读 · 0 评论