摘要: 反向传值 第二个类中: @interface NationNumberViewController : BaseViewController @property (nonatomic, strong)void (^selectBlock)(NSString *num); @end #pragma m 阅读全文
posted @ 2016-03-17 15:18 莫莫smile1 阅读(142) 评论(0) 推荐(0) 编辑
摘要: //获取国家区号视图 @interface PickerView : UIView @property(nonatomic,retain)RegisterViewController * registerVC; @property (nonatomic, strong)void (^resultBl 阅读全文
posted @ 2016-03-17 15:12 莫莫smile1 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.+ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated; 创建一个新的HUD,并把它添加并显示到提供的视图上.与之相对应的方法是 hideHUDForView:animated:. @note 这个方法会设 阅读全文
posted @ 2016-01-28 14:40 莫莫smile1 阅读(786) 评论(0) 推荐(0) 编辑
摘要: 一、CALayer1、CALayer一般作为UIViewiew的容器使用2、CALayer是一个管理着图片载体的层结构3、直接修改单独创建出的CALayer的属性可以触发隐式动画4、UIview中的CALayer动画必须显示触发才能生效例一、@property(nonatomic,strong)CA... 阅读全文
posted @ 2015-12-18 13:38 莫莫smile1 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1、帮助文档 在Xcode->help里头2、找资料引擎: 微软的bing 360的so.com技术交流问答平台:stackoverflow,github,3、推送配置推送证书 配置ssl证书和provisioning profiles member center->Certificates-... 阅读全文
posted @ 2015-12-15 10:34 莫莫smile1 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、main(){ int a[5]={1,2,3,4,5};int *ptr=(int*)(&a+1);printf("%d,%d",*(a+1),*(ptr-1));}第一个:2,a指向数组首地址a[1]=2;第二个:a是一个数组名,也就是数组的首地址。对a进行取地址运算符,得到的是一个指向数组... 阅读全文
posted @ 2015-12-14 17:39 莫莫smile1 阅读(156) 评论(0) 推荐(0) 编辑
摘要: //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UI... 阅读全文
posted @ 2015-12-10 16:22 莫莫smile1 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、键值监听 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:U... 阅读全文
posted @ 2015-12-10 11:50 莫莫smile1 阅读(168) 评论(0) 推荐(0) 编辑
摘要: [NSTimer scheduledTimerWithTimeInterval:[self getRandomNumber:1 to:8] target:self selector:@selector(handleTimer:) userInfo:nil repeats:YES];//获取随机数-(... 阅读全文
posted @ 2015-12-10 11:47 莫莫smile1 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 一、手势种类UITapGestureRecognizer 点击UIPinchGestureRecognizer 二指往内或往外拨动UIRotationGestureRecognizer 旋转UISwipeGestureRecognizer滑动,快速移动UIPanGestureRecognizer拖移... 阅读全文
posted @ 2015-12-10 11:44 莫莫smile1 阅读(121) 评论(0) 推荐(0) 编辑