代码改变世界

阅读排行榜

iOS  地图(自定义地位图标)

2015-08-24 21:25 by 甘雨路, 435 阅读, 收藏,
摘要: 1 #import 2 3 @interface AppDelegate : UIResponder 4 5 @property (strong, nonatomic) UIWindow *window;6 7 @end 1 #import "AppDelegate.h" 2 #import "Ro... 阅读全文

重写NSLog,Debug模式下打印日志和当前行数

2016-03-08 17:24 by 甘雨路, 432 阅读, 收藏,
摘要: 在pch文件中加入以下命令,NSLog在真机测试中就不会打印了 //重写NSLog,Debug模式下打印日志和当前行数 #if DEBUG #define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d content:%s\n", 阅读全文

UIScrollView 实现比例缩放

2015-07-14 21:27 by 甘雨路, 426 阅读, 收藏,
摘要: 1 #import "RootViewController.h" 2 3 @interface RootViewController () 4 { 5 UIImageView *imageView; 6 UILabel *scaleRatioLabel;// 显示倍率用的Labe... 阅读全文

iOS 快递查询

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

swift 同步加载图片

2016-01-26 10:14 by 甘雨路, 403 阅读, 收藏,
摘要: import UIKit@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIAppl... 阅读全文
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 44 下一页