码迷,mamicode.com
首页 >  
搜索关键字:alloc    ( 3259个结果
NSString和NSDate的转换
输入的日期字符串形如:@"1992-05-21 13:08:08"- (NSDate*)dateFromString:(NSString*)dateString{NSDateFormatter*dateFormatter = [[NSDateFormatter alloc]init];[dateFo...
分类:其他好文   时间:2014-06-17 16:00:25    阅读次数:131
Linux源代码情景分析读书笔记 物理页面的分配
函数 alloc_pages流程图
分类:系统相关   时间:2014-06-17 13:54:43    阅读次数:500
android stack trace
// 放在所有头文件的后面#include android::CallStack stack;stack.update();stack.dump("alloc stack trace:");
分类:移动开发   时间:2014-06-15 20:36:17    阅读次数:299
ISO UiView和UiDatePiceker的搭配
效果图如下:功能代码如下: //datepicker UIView *myView=[[UIView alloc]initWithFrame:CGRectMake(20, 100, 280, 224)]; myView.layer.borderWidth=2; myView.lay...
分类:其他好文   时间:2014-06-15 00:08:58    阅读次数:279
OC字符串常用函数
创建一个字符串对象:123456789NSstring * str1 = @"hello";NSString * str = [[NSString alloc]initWithString:@"hello world!"];NSString * str_1 = [[NSString alloc]in...
分类:其他好文   时间:2014-06-14 22:09:50    阅读次数:260
【iOS】1
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(320/2.0 - 140/2.0, 80, 140, 40)];label.text = @"Hello World";label.backgroundColor = [UICol...
分类:移动开发   时间:2014-06-14 08:32:55    阅读次数:266
Block 代替for循环
NSDictionary *aDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"tom",@"1",@"alex",@"2",@"josen",@"3", nil]; [aDictionary enumerateK...
分类:其他好文   时间:2014-06-12 15:18:51    阅读次数:185
黑马程序员_学习IOS之字典常用的方法
字典是无序的 数组是有序的。字典分为:可变字典和不可变字典不可变字典对象NSDictionary * dict = [[NSDictionary alloc]initWithObjectsAndKeys:@"one",@"1",@"two",@"2",@"three",@"3",@"four",@"...
分类:移动开发   时间:2014-06-12 06:25:50    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!