
IOS
文章平均质量分 80
「已注销」
代码改变世界
展开
-
应用程序托管代码分析
#import "YcanAppDelegate.h"@implementation YcanAppDelegate// 程序启动时调用- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ NSLog(@" didF原创 2013-07-03 17:09:59 · 603 阅读 · 0 评论 -
UIView小结
有过编程经验的我们应该十分清楚,View(视图)作为一个窗口,一般来说,它就是一个矩形区域,UIView亦是如此。个人感觉UIView在UIKit框架中的地位跟CWnd在MFC中的地位比较接近,都是其他几乎所有窗口的父窗口,至少目前我是这样理解的。视图是应用与使用者交互的主要途径,它具备以下主要职责:1、绘图和动画2、布局和子视图管理3、事件处理详细说明可参考官方文档。原创 2013-07-04 17:34:29 · 617 阅读 · 0 评论 -
AirPrint 基础知识
本文来自苹果官网:http://support.apple.com/kb/HT4356?viewlocale=zh_CN&locale=zh_CN利用 AirPrint 能从 iPad、iPhone、iPod touch 和 Mac 即时打印,无需安装驱动程序或下载软件。只需选择一个 AirPrint 打印机进行打印即可。就这么简单。AirPrintAi转载 2013-07-29 18:52:27 · 1681 阅读 · 0 评论 -
iOS手势识别初探
UIGestureRecognizerState的定义如下:typedef enum { UIGestureRecognizerStatePossible, UIGestureRecognizerStateBegan, UIGestureRecognizerStateChanged, UIGestureRecognizerStateEnded,原创 2013-08-22 17:16:17 · 1473 阅读 · 0 评论 -
RGB转化成bitmap格式
ask:I have a buffer of RGB unsigned char that I would like converted into a bitmap file, does anyone know how?My RGB float is of the following formatR [(0,0)], G[(0,0)], B[(0,0)],R [(0,1)]转载 2013-03-25 18:10:45 · 6142 阅读 · 0 评论 -
iOS开发图像处理--绘制图片上下颠倒
使用CGContextDrawImage绘制图片上下颠倒 首先要说的是,在iOS的不同framework中使用着不同的坐标系 :UIKit - y轴向下Core Graphics(Quartz) - y轴向上OpenGL ES - y轴向上 UIKit是iPhone SDK的Cocoa Touch层的核心framework,是iPhone应用程序图形界面和转载 2013-04-24 14:11:00 · 759 阅读 · 0 评论 -
iOS library Other Linker Flags
set Targets Other Linker Flags value:-objC,-all_load,-force_loadFor 64-bit and iPhone OS applications, there is a linker bug that prevents -ObjC from loading objects files from static libraries转载 2013-03-13 18:35:23 · 2486 阅读 · 0 评论 -
The following macros are predefined in OS X:
__APPLE__ This macro is defined in any Apple computer.__APPLE_CC__ This macro is set to an integer that represents the version number of the compiler. This lets you distinguish, for examp转载 2013-03-14 11:23:37 · 1024 阅读 · 0 评论 -
在iOS中使用静态库(总结自官方文档Using Static Libraries in iOS)
前言 静态库为在多个应用之间共享代码提供了一种便捷的方式。在iOS中,静态库是唯一被支持的库类型。该文档说明了如何如何从你的应用中提取代码来构建一个静态库,并且,该文档还讲述了如何在多个 应用中使用该静态库。 使用静态库有两个步骤: 第一步,创建静态库; 第二步:配置你的应用,来使用静态库;一、创建静态原创 2013-03-14 09:31:28 · 2397 阅读 · 0 评论 -
Xcode9的模拟器太赞了!
美观、还能多开,就这两样就让我忍不住要赞一个!原创 2017-11-29 00:59:30 · 1304 阅读 · 0 评论