上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 发布iOS应用程序到App Store - 前期工作要发布iOS应用程序到App Store首先需要一个iOS developer帐号,账号是收费的,$99美元/年。即便是免费应用也需要一个开发者账号,注册Developer账户这里就不详细介绍了。然后自然是将App准备好。确保iOS应用程序已经在模拟器(Simulator)中做了全面的测试确认没有已知Bug了。App发布的工作一切准备好了之后,就可以发布应用到App Store了,应用发布概括起来需要以下几个流程:1. 注册App ID,在Xcode中指定Bundle Identifier2. 创建发布证书(Distribution Cert 阅读全文
posted @ 2013-09-07 13:22 wangzhenxiang 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1 //转换成NSData来保存图片2 0NSString *path=[NSString stringWithFormat:@"%@/Documents/%@.jpg",NSHomeDirectory(),@"image"]; 3 NSData *image = UIImageJPEGRepresentation(imageUrl,0); 4 [image writeToFile:pathatomically:YES];5 6 NSString *path=[NSString stringWithFormat:@"%@/Documents/% 阅读全文
posted @ 2013-09-02 10:58 wangzhenxiang 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 //禁止横屏显示2 - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window3 {4 return UIInterfaceOrientationMaskPortrait;5 } 阅读全文
posted @ 2013-08-30 12:52 wangzhenxiang 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 @interface MyViewController () { 2 // 数据库实例,代表着整个数据库 3 sqlite3 *_db; 4 } 5 @end 6 7 @implementation MyViewController 8 9 - (void)viewDidLoad 10 { 11 [super viewDidLoad]; 12 13 [self openDB]; 14 15 [self createTables]; 16 17 for (int i = 0; i<10; i... 阅读全文
posted @ 2013-08-18 16:05 wangzhenxiang 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1 NSMutableDictionary *dict = [NSMutableDictionary dictionary]; 2 [dict setObject:@"mj" forKey:@"name"]; 3 [dict setObject:[NSNumber numberWithInt:10] forKey:@"age"]; 4 5 // 获取应用沙盒的根路径 6 NSString *home = NSHomeDirectory(); 7 NSString *documents = [home stringByAppending 阅读全文
posted @ 2013-08-18 14:58 wangzhenxiang 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1 //无色 2 cell.selectionStyle = UITableViewCellSelectionStyleNone; 3 //蓝色,也就是系统默认的颜色 4 cell.selectionStyle = UITableViewCellSelectionStyleBlue; 5 //灰色 6 cell.selectionStyle = UITableViewCellSelectionStyleGrap; 7 8 //自定义选中的背景色 通过RGB来定义颜色 9 UIColor* color = [[UIColor alloc]initWithRed:0.0 green:0.0 b.. 阅读全文
posted @ 2013-08-15 18:40 wangzhenxiang 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1 //不支持屏幕旋转2 - (NSUInteger)supportedInterfaceOrientations3 {4 return UIInterfaceOrientationMaskPortrait;5 } 阅读全文
posted @ 2013-08-14 15:35 wangzhenxiang 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 UIImageView *imageView = [[[UIImageView alloc] init];2 imageView.image = [UIImage imageNamed:@"image.png"];3 4 //设置5 imageView.userInteraction = YES;6 //图片点击事件7 UITapGestureRecognizer *gestureRecognize = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickImage)];8 阅读全文
posted @ 2013-08-07 15:53 wangzhenxiang 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1.创建01.UITextField* textField = [[UITextField alloc]initWithFrame:CGRectMake(50, 100, 200, 50)]; 2.设置委托//委托类需要遵守UITextFieldDelegate协议 01.textField.delegate = self;3.设置属性UIControl属性对UITextField完全可以用,下面的都是UITextField扩展的属性//默认就是左对齐,这个是UITextField扩展属性 01.textField.textAlignment = UITextAlignmentLeft;... 阅读全文
posted @ 2013-08-06 18:03 wangzhenxiang 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(left)];2 3 self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self... 阅读全文
posted @ 2013-08-06 14:36 wangzhenxiang 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页