摘要:BMP: 点位图格式这个格式保存的图像没有失真,它保存每个像素的信息不支持文件压缩。 网页中较少使用。JPEG: 与平台无关,支持最高级别的压缩。压缩比越大,文件越小,图片质量越差。GIF:以8~256色存储图片数据。支持透明度,压缩,交错和多图像图片(动画)。不支持半透明,因为透明度不是alpha通道透明度。git颜色数量少,很多情况下文件远远小于JPEG。PNG:可以热河颜色深度存储图片,与平台无关。png也支持透明度以及压缩。分为PNG-8, PNG-24格式。IE对png支持不是很好网页不常使用。
阅读全文
摘要:for (UIView *searchBarSubview in [self.searchBar subviews]) { if ([searchBarSubview conformsToProtocol:@protocol(UITextInputTraits)]) { @try { [(UITextField *)searchBarSubview setBorderStyle:UITextBorderStyleRoundedRect]; } @catch (NSException *...
阅读全文
摘要:例如:一个UIButton的一部分添加到一个UIView上,那么你点击的时候只有点击在和它父类交集的地方才起作用,如何解决这个问题呢?- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { if (CGRectContainsPoint(self.button.frame, point)) { return YES; } return [super pointInside:point withEvent:event];}很简单的,也就是你点击的点被包含在这个btton的frame里面,ret...
阅读全文
摘要:Add Ad Hoc configuration by duplicating release (You can do that by pressing + sign))You need to add distribution signing profile for Ad Hoc as well asRelease.Now on top left corner of your XCode screen. Click on project Name like here I click on MIMChartLIbI get popup like this.Click on Edit Scheme
阅读全文