代码改变世界

iOS 快递查询

2015-11-26 10:00 by 甘雨路, 418 阅读, 0 推荐, 收藏,
摘要:#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

iOS UILabel根据文字获取高度及UITableCell动态获取高度(以截取快递信息为例)

2015-11-15 11:05 by 甘雨路, 491 阅读, 0 推荐, 收藏,
摘要:#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

iOS SQLite 增删改查的封装(关系型)

2015-11-09 20:16 by 甘雨路, 268 阅读, 0 推荐, 收藏,
摘要:在工程里导入libsqlite3.tbd库(Xcode 7) #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWi 阅读全文

iOS SQLite增删改查(简单应用)

2015-11-09 11:05 by 甘雨路, 243 阅读, 0 推荐, 收藏,
摘要:// 注意: 在工程里导入libsqlite3.tbd库(Xcode7,如果Xcode7以下的版本则导入libsqlite3.dylib). #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDele 阅读全文

设置引导页(第一次登陆进入引导页)

2015-11-05 22:17 by 甘雨路, 2018 阅读, 0 推荐, 收藏,
摘要:#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "GuideViewController.h"... 阅读全文

Pods管理iOS第三 库(二)

2015-11-05 00:11 by 甘雨路, 205 阅读, 1 推荐, 收藏,
摘要:Podfile 文件 如果要整合Pods, 先需要创建 个Podfile 件。xcode创 建 个新 程Pods-2保存到桌 。在终端cd到 程的根 录。 例如下: lifan:~ apple$ cd /Users/apple/Desktop/Test_AFNetworking lifan:Test 阅读全文

安装Cocoapods(Pods 管理iOS 第三方库)

2015-11-04 23:46 by 甘雨路, 177 阅读, 0 推荐, 收藏,
摘要:安装 可先检测Mac电脑是否安装Pods。打开控制台: $ which pod 如果安装,结果如下;如果没有安装,控制台无反应。 /usr/bin/pod 如果没有安装, 以下命令安装之。 $ sudo gem install cocoapods 此时,安装的进度会 常慢。主要原因是cocoapod 阅读全文

iOS 从手机相册里选取图片

2015-11-01 16:13 by 甘雨路, 343 阅读, 0 推荐, 收藏,
摘要:#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end #import "AppDelegate.h" #import "RootViewController.h" @interface AppDelegate () @end @impl... 阅读全文

Xcode 6.x 添加Empty Application模板

2015-10-28 09:25 by 甘雨路, 173 阅读, 0 推荐, 收藏,
摘要:Xcode 6.x 添加Empty Application模板在Apple最新的XCode6.x中没有了Empty Application模板,这对一个老人来说是不能别接受的,同时也可以看出Apple在主力推荐IB和StoryBoard。好在XCode可以添加模板,而且可以自定义模板。首先可以到XC... 阅读全文

UITableView + UISearchBar 实现搜索功能

2015-09-14 14:00 by 甘雨路, 231 阅读, 0 推荐, 收藏,
摘要:1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 8 @end 1 #import "AppDelegate.h" 2 #import "... 阅读全文