摘要: #import #import "Person.h"#import "BankAccount.h"int main(int argc, const char * argv[]){// 实例化一个人, 表示是这个名字叫wangdelong的人, 准备在银行开户 Person *person = [[... 阅读全文
posted @ 2014-07-16 17:59 平淡的我 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #import "MJmainViewController.h"@interface MJmainViewController ()@end@implementation MJmainViewController- (id)initWithNibName:(NSString *)nibNameOrN... 阅读全文
posted @ 2014-07-16 14:18 平淡的我 阅读(208) 评论(0) 推荐(1) 编辑
摘要: #import "MJcostom.h"@implementation MJcostom- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { self.backgroundColor=[U... 阅读全文
posted @ 2014-07-16 14:10 平淡的我 阅读(324) 评论(0) 推荐(0) 编辑
摘要: #import "QYCustomView.h"/*#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效*/@implementati... 阅读全文
posted @ 2014-07-16 14:07 平淡的我 阅读(348) 评论(0) 推荐(0) 编辑
摘要: #import "QYCustomView.h"#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效@implementation Q... 阅读全文
posted @ 2014-07-16 14:04 平淡的我 阅读(336) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import @interface ViewController () //这里为什么要把它设置成为属性?为了就是解决强引用的问题,如果不设置,locationManger会在花括号之后,就会释放掉,这样就看不到了我们想要的地址改变信息,arc情... 阅读全文
posted @ 2014-07-16 13:44 平淡的我 阅读(229) 评论(0) 推荐(0) 编辑
摘要: //当我们的事件开始的时候调, 对于touch来说, 实际上当手指头放到屏幕上的时候,这个方法会被调用- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"%s",__func__);}//当我们手指点击屏... 阅读全文
posted @ 2014-07-16 10:39 平淡的我 阅读(196) 评论(0) 推荐(0) 编辑