用Quartz2D 1 CGSize imageSize = self.view.bounds.size; 2 //开启图形上下文 3 UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0); 4 //获得图形...
分类:
移动开发 时间:
2015-02-25 15:23:42
阅读次数:
144
直接上代码 UIView *myView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; myView.backgroundColor = [UIColor redColor]; [self.view a...
分类:
移动开发 时间:
2015-02-22 10:58:28
阅读次数:
139
我在使用Xcode6时手动创建ViewController时也遇到了这样的问题,后来发现是因为项目设置中的LaunchImagesSource没有设置好的原因。因为把Xcode6自动生成的LaunchScreenController.xib删除了,项目设置中的LaunchImagesSource选项变成了UseAssetCatalog,这时又没有指定正确的Im..
分类:
其他好文 时间:
2015-02-15 23:12:50
阅读次数:
395
+ (UIImage*)imageFromView:(UIView*)view{ 02 03 UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, view.layer.contentsScale); 04 ...
分类:
其他好文 时间:
2015-02-13 19:51:30
阅读次数:
112
部分内容转载自:http://blog.csdn.net/mad1989/article/details/8711697...
分类:
其他好文 时间:
2015-02-13 16:44:32
阅读次数:
119
boundsPropertyThe bounds rectangle, which describes the view’s location and size in its own coordinate system.bounds 矩形使用视图本身的坐标系统来的描述视图的位置和大小Declarat...
分类:
其他好文 时间:
2015-02-06 20:23:14
阅读次数:
163
Configuring the Bounds and Frame RectanglesframePropertyThe frame rectangle, which describes the view’s location and size in its superview’s coordinat...
分类:
其他好文 时间:
2015-02-06 20:15:01
阅读次数:
184
SAFEARRAY SafeArrayCreate SafeArrayDestroy // Specify the bounds: // -- dim. count = 2 // -- element count = 8 for each dimension // -- lo...
分类:
其他好文 时间:
2015-02-06 11:01:52
阅读次数:
127