代码改变世界

iOS 通过接受距离传感器的消息改变屏幕的明暗度(仅限用于真实的手机)

2015-07-06 22:11 by 甘雨路, 440 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl... 阅读全文

下拉刷新和上拉加载更多(第三方框架MJRefresh)

2015-07-06 20:01 by 甘雨路, 598 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "RootViewController.h" 2 #import "MJRefresh.h" 3 @interface RootViewController () 4 { 5 UITableView *_tableView ; 6 NSMutable... 阅读全文

UIStepper

2015-07-04 08:18 by 甘雨路, 164 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl... 阅读全文

UITextField的文本框部分文本以*的方式来显示

2015-07-03 17:21 by 甘雨路, 203 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate ()// 添加代理协议 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplicati... 阅读全文

UIDatePicker

2015-06-30 22:56 by 甘雨路, 217 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 @property (nonatomic,strong)UILabel *label; 5 @end 6 7 @implementation AppDelegate 8 9 -... 阅读全文

UIActionSheet(操作列表)

2015-06-30 22:28 by 甘雨路, 162 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl... 阅读全文

iOS 隐藏App图标

2015-06-30 10:10 by 甘雨路, 615 阅读, 0 推荐, 收藏, 编辑
摘要:1.在进入Info.plist文件 2.在Info.plist文件中新添加一项,把Key值设置为SBAppTags,在Type选项中选取Array 3.在Array中新添加一项Item0,Type类型选择String,在点击后面空白处,输入hidden;然后运行程序便可实现隐... 阅读全文

简单实现下拉刷新数据

2015-06-27 21:07 by 甘雨路, 479 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 #import "SearchController.h" 3 @interface AppDelegate () 4 @property (nonatomic,strong)UITableView *table; 5 @property (n... 阅读全文

吸收效果,像是在Mac上的垃圾桶的效果一样

2015-06-27 00:36 by 甘雨路, 341 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 #import 3 4 @interface AppDelegate () 5 @property (nonatomic ,strong)UIImageView *birdImage; 6 @end 7 8 @implementatio... 阅读全文

让整个界面呈现水波纹的效果

2015-06-27 00:25 by 甘雨路, 443 阅读, 0 推荐, 收藏, 编辑
摘要:1 #import "AppDelegate.h" 2 #import 3 4 @interface AppDelegate () 5 @property (nonatomic ,strong)UIImageView *birdImage; 6 @end 7 8 @implementatio... 阅读全文