码迷,mamicode.com
首页 >  
搜索关键字:alloc    ( 3259个结果
ffmpeg yuv420保存jpg文件
int yuv420_to_jpg(void *data,int w,int h,char *file) { av_register_all(); AVFormatContext *pFormatCtx = avformat_alloc_context(); AVOutputFormat *fmt ... ...
分类:其他好文   时间:2017-10-17 12:17:43    阅读次数:278
iOS开发-UITextView文字排版
UITextView文本排版 1.配置NSMutableParagraphStyle NSMutableParagraphStyle *MParaStyle = [[NSMutableParagraphStyle alloc] init]; MParaStyle.alignment = NSText ...
分类:移动开发   时间:2017-10-11 19:07:32    阅读次数:1200
ObJective-C UIViewController生命周期及iOS程序执行顺序
最近有一个小师弟问我生命周期和程序执行顺序的问题,话不多少,这就分享一篇文章.非常详细. 当一个视图控制器被创建,并在屏幕上显示的时候。 代码的执行顺序 1、 alloc 创建对象,分配空间 2、init (initWithNibName) 初始化对象,初始化数据 3、loadView 从nib载入 ...
分类:移动开发   时间:2017-10-10 16:37:56    阅读次数:253
跳转到QQ聊天
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; NSURL *url = [NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=815040727&versi ...
分类:其他好文   时间:2017-10-08 12:15:14    阅读次数:163
[Oralce][InMemory]如何确定一个表已经被Populate 到In Memory 中?
[Oralce][InMemory]如何确定一个表已经被Populate 到In Memory 中?以如下方法来查看 POPULATE_STATUS 是不行的。SQL> select inst_id, 2 pool 3 ,alloc_bytes/1024/1024 alloc_mb 4 ,used_ ...
分类:其他好文   时间:2017-10-04 14:10:37    阅读次数:206
runtime的意义
runtime:是运行时机制,oc特有 编译时:不会检查方法是否真实实现 运行时:才会知道 c语言不同:编译时就知道 具体实现: Person*p=[Person alloc]init] [p eat]; 调用方法的本质是:消息发送机制,运行时机制 底层实现是: [p performSelector ...
分类:其他好文   时间:2017-10-02 09:39:03    阅读次数:217
primer Day4
用new分配一个const 对象必须要初始化 通常情况下new失败了,会抛出一个bad_alloc的异常 我们可以通过改变使用new的方式来组织他抛出异常 这种形式的new成为定位New int *p1 = new int ; //如果分配失败 会抛出一个bad_alloc的异常 int *p2 = ...
分类:其他好文   时间:2017-09-27 23:58:39    阅读次数:362
16.Linux-LCD驱动(详解)
在上一节LCD层次分析中,得出写个LCD驱动入口函数,需要以下4步: 1) 分配一个fb_info结构体: framebuffer_alloc(); 2) 设置fb_info 3) 设置硬件相关的操作 4) 使能LCD,并注册fb_info: register_framebuffer() 本节需要用 ...
分类:系统相关   时间:2017-09-27 21:52:59    阅读次数:244
ScrollView高级特性
1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 //滚动视图,可以对屏幕内容进行滚屏查看。 4 5 _scrollView = [[UIScrollView alloc]init]; 6 7 _scrollView.frame = CGRectMak... ...
分类:其他好文   时间:2017-09-27 20:56:30    阅读次数:228
IOS--时间 NSDate,NSTimeInterval的一些转换
1 //1.时间格式 2 NSDateFormatter *_dateFormatter = [[NSDateFormatter alloc] init]; 3 [_dateFormatter setDateFormat:@"YYYY年MM月dd天hh小时mm分ss秒"]; 4 5 //2.获取系统... ...
分类:移动开发   时间:2017-09-27 17:32:14    阅读次数:235
3259条   上一页 1 ... 14 15 16 17 18 ... 326 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!