摘要: //// ViewController.m// 04-键盘处理////#import "ViewController.h"#import "XMGProvince.h"@interface ViewController ()<UITextFieldDelegate,UIPickerViewDataS 阅读全文
posted @ 2016-03-08 16:13 听风观雨阁 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #import <UIKit/UIKit.h>#import <Foundation/Foundation.h>@interface ZMStatuBarHud : NSObject//成功时候显示消息+ (void)showSuccess:(NSString *)msg;//失败的时候显示消息+ 阅读全文
posted @ 2016-03-07 20:54 听风观雨阁 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 首先要先引入 #import <Social/Social.h> @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch *> *)touches wit 阅读全文
posted @ 2016-02-25 21:55 听风观雨阁 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 【iOS开发】-canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx" Collection/Bookmark/Share for width under 768px 控制台输 阅读全文
posted @ 2016-02-25 19:51 听风观雨阁 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 第二个视图控制器如何获取第一个视图控制器的部分信息 例如 :第二个界面中的lable显示第一个界面textField中的文本 这就需要用到属性传值、block传值 那么第一个视图控制器如何获的第二个视图控制器的部分信息 例如:第一个界面中的lable显示第二个界面textField中的文本 这就需要 阅读全文
posted @ 2016-02-25 15:20 听风观雨阁 阅读(800) 评论(0) 推荐(0) 编辑
摘要: //break是结束整个循环体,continue是结束单次循环比方说:while(x++ < 10){ if(x == 3) { break; } printf("%d\r\n", x);}结果是输出 1 2 就退出了整个while循环但是如果使用continuewhile(x++ < 10){ i 阅读全文
posted @ 2016-02-25 15:00 听风观雨阁 阅读(150) 评论(0) 推荐(0) 编辑
摘要: GCD总结GCD Grand Central Dispatch 牛逼的中枢调度器GCD中各种队列的执行效果想看线程 必须是异步函数 并且不是主队列注意:使用sync函数往当前串行队列添加任务,会卡住当前的串行队列同步函数 立即执行异步函数 稍后执行(所以不会阻塞)dispatch_barrier_a 阅读全文
posted @ 2016-02-08 21:10 听风观雨阁 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 使用pickview的时候多想想tableview的使用,观察两者的相同之处 pickview的主要用途用于选择地区 生日年月日 和点餐 示例代码 简单的pickview点餐系统// ViewController.m// UIPickView#import "ViewController.h"@in 阅读全文
posted @ 2016-01-31 14:27 听风观雨阁 阅读(326) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // wyy // // Copyright © 2016年 zm. All rights reserved. // #import "ViewController.h" #import "ZMViewController.h" #import "ZML 阅读全文
posted @ 2016-01-29 20:18 听风观雨阁 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 一 FMDB的简单说明及介绍 FMDB的github地址 https://github.com/ccgus/fmdb FMDB是一款简洁的,易用的封装库,简单介绍一下FMDB的使用 在FMDB下载文件后,工程中必须导入如下文件,并使用libsqlite3.0.tbd依赖包 FMDB同时兼容ARC和非 阅读全文
posted @ 2016-01-29 16:00 听风观雨阁 阅读(180) 评论(0) 推荐(0) 编辑