输入的日期字符串形如:@"1992-05-21 13:08:08"- (NSDate*)dateFromString:(NSString*)dateString{NSDateFormatter*dateFormatter = [[NSDateFormatter alloc]init];[dateFo...
分类:
其他好文 时间:
2014-06-17 16:00:25
阅读次数:
131
// 放在所有头文件的后面#include android::CallStack stack;stack.update();stack.dump("alloc stack trace:");
分类:
移动开发 时间:
2014-06-15 20:36:17
阅读次数:
299
效果图如下:功能代码如下: //datepicker UIView *myView=[[UIView alloc]initWithFrame:CGRectMake(20, 100, 280, 224)]; myView.layer.borderWidth=2; myView.lay...
分类:
其他好文 时间:
2014-06-15 00:08:58
阅读次数:
279
创建一个字符串对象:123456789NSstring * str1 = @"hello";NSString * str = [[NSString alloc]initWithString:@"hello world!"];NSString * str_1 = [[NSString alloc]in...
分类:
其他好文 时间:
2014-06-14 22:09:50
阅读次数:
260
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
NSDictionary *aDictionary = [[NSDictionary
alloc]initWithObjectsAndKeys:@"tom",@"1",@"alex",@"2",@"josen",@"3", nil];
[aDictionary enumerateK...
分类:
其他好文 时间:
2014-06-12 15:18:51
阅读次数:
185
字典是无序的
数组是有序的。字典分为:可变字典和不可变字典不可变字典对象NSDictionary * dict = [[NSDictionary
alloc]initWithObjectsAndKeys:@"one",@"1",@"two",@"2",@"three",@"3",@"four",@"...
分类:
移动开发 时间:
2014-06-12 06:25:50
阅读次数:
324