使用腾讯地图sdk,出现警告:
Assigning to 'id" from incompatible type "view control * const_strong"
在viewcontroller.m文件中
将
@interface
ViewController ()
改为
@interface
ViewController ()QMapViewDele...
分类:
其他好文 时间:
2014-11-30 16:55:17
阅读次数:
124
Touch ID是iOS8上新公开的API,关于详细介绍和用法可以看CocoaChina的这两篇文章:上 和 下,在此篇文章中不在赘述。 我在app中需要的效果是如果touch id验证通过,则页面push到下一个viewController,否则本视图的数字密码输入框becomeFirstR...
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; int arr[4][4]={ 1,0...
分类:
其他好文 时间:
2014-11-29 21:31:48
阅读次数:
258
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField *标题; //用的是一个text按键@property (weak, nonatomic) I...
分类:
移动开发 时间:
2014-11-29 17:35:12
阅读次数:
454
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField *one;//能够输入的第一个文本文框 用的是text按键@property (weak, n...
分类:
移动开发 时间:
2014-11-29 17:30:43
阅读次数:
710
原图: 900 x 1305 拖曳滚动:缩放: 主要代码: 1 // 2 // ViewController.m 3 // ImageZoom 4 // 5 // Created by hellovoidworld on 14/11/28. 6 // Copyright (c) 2014年 ...
分类:
移动开发 时间:
2014-11-29 06:42:31
阅读次数:
202
随着程序逻辑复杂度的提高,你是否也发现了App中一些ViewController的代码行数急剧增多,达到了2、3千行,甚至更多。这时如果想再添加一点功能或者修改现有逻辑变得让人无比头疼。如果你遇到了这类问题,那是时候停下来了,思考一下如何更好地组织代码,给VC瘦身。本文将会阐述如何结合MVC的思想帮...
分类:
其他好文 时间:
2014-11-28 16:05:34
阅读次数:
185
MVC全名是Model ViewController,是模型(model)-视图(view)-控制器(controller)的缩写,一种软件设计典范,用一种业务逻辑、数据、界面显示分离的方法组织代码,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务逻辑。MVC被独特的发展起来用于映射传统的输入、处理和输出功能在一个逻辑的图形化用户界面的结构中。 ...
分类:
Web程序 时间:
2014-11-27 20:30:28
阅读次数:
195
山寨今日头条的标题title效果效果:源码://// ViewController.m// 今日头条//// Created by YouXianMing on 14/11/26.// Copyright (c) 2014年 YouXianMing. All rights reserved....
分类:
其他好文 时间:
2014-11-27 00:10:01
阅读次数:
222
//// ViewController.m// 变形方块//// Created by 卿鹏 on 14-11-26.// Copyright (c) 2014年 qingpeng. All rights reserved.//#import "ViewController.h"@inter...
分类:
其他好文 时间:
2014-11-26 23:55:23
阅读次数:
275