代码改变世界

随笔档案-2016年01月

iOS Reachability的基本用法

2016-01-27 17:41 by 甘雨路, 390 阅读, 收藏,
摘要: #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end #import "App 阅读全文

swift NSUserDefaults的基本使用

2016-01-26 16:07 by 甘雨路, 920 阅读, 收藏,
摘要: import UIKit@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppl... 阅读全文

swift 异步加载图片(第三方框架ImageLoader)

2016-01-26 14:33 by 甘雨路, 1118 阅读, 收藏,
摘要: import UIKit@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppl... 阅读全文

swift 异步加载图片

2016-01-26 14:14 by 甘雨路, 582 阅读, 收藏,
摘要: import UIKit@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppl... 阅读全文

swift 同步加载图片

2016-01-26 10:14 by 甘雨路, 407 阅读, 收藏,
摘要: import UIKit@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppl... 阅读全文

iOS UICollectionView之三(基本用法)

2016-01-25 12:01 by 甘雨路, 323 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

iOS UICollectionView之二(垂直滚动)

2016-01-25 10:47 by 甘雨路, 1735 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

iOS UICollectionView之-(水平滚动)

2016-01-25 10:43 by 甘雨路, 2103 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@... 阅读全文

iOS 可延展视图(点击前显示部分文字,点击后显示全部)

2016-01-18 12:51 by 甘雨路, 566 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewC... 阅读全文

iOS 重写UITableViewCell之动态获取label文字的宽度进行布局

2016-01-12 17:57 by 甘雨路, 640 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "MovieHomeCon... 阅读全文

iOS 蓝牙开发之传输图片

2016-01-06 14:24 by 甘雨路, 765 阅读, 收藏,
摘要: #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end/** * 注意: 适用于ios7或更高系统 * * 首先在工程里导入MultipeerConnecti... 阅读全文