代码改变世界

随笔档案-2015年06月

UIDatePicker

2015-06-30 22:56 by 甘雨路, 224 阅读, 收藏,
摘要: 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 甘雨路, 168 阅读, 收藏,
摘要: 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 甘雨路, 635 阅读, 收藏,
摘要: 1.在进入Info.plist文件 2.在Info.plist文件中新添加一项,把Key值设置为SBAppTags,在Type选项中选取Array 3.在Array中新添加一项Item0,Type类型选择String,在点击后面空白处,输入hidden;然后运行程序便可实现隐... 阅读全文

简单实现下拉刷新数据

2015-06-27 21:07 by 甘雨路, 501 阅读, 收藏,
摘要: 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 甘雨路, 347 阅读, 收藏,
摘要: 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 甘雨路, 446 阅读, 收藏,
摘要: 1 #import "AppDelegate.h" 2 #import 3 4 @interface AppDelegate () 5 @property (nonatomic ,strong)UIImageView *birdImage; 6 @end 7 8 @implementatio... 阅读全文

用贝塞尔曲线实现水波效果

2015-06-26 16:49 by 甘雨路, 892 阅读, 收藏,
摘要: // AppDelegate .h 文件 #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end ... 阅读全文

在一个Label上设置多种颜色字体

2015-06-26 16:09 by 甘雨路, 785 阅读, 收藏,
摘要: 1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)appli... 阅读全文

用UIImageView作出动画效果

2015-06-25 23:42 by 甘雨路, 349 阅读, 收藏,
摘要: #import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith... 阅读全文

iOS 自定义UIButton(图片和文字混合)

2015-06-22 23:00 by 甘雨路, 1328 阅读, 收藏,
摘要: // UIApplicationDelegate .h文件 #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWin 阅读全文

iOS 在一个应用程序中调另一个应用程序

2015-06-19 22:23 by 甘雨路, 237 阅读, 收藏,
摘要: 在A应用程序中调用B应用程序 1. 首先在B应用程序中生成URL 1)点击targets文件 2)点击Info 3)生成URL ①在Info.plist文件中点击+(新添加一项) ②在Info.plist新添加的一项中的Key选项选择URL types,然后点击... 阅读全文

iOS 图片实现马赛克效果

2015-06-19 09:50 by 甘雨路, 1036 阅读, 收藏,
摘要: /** *实现马赛克效果 */ //导出CIImage图片 CIImage*ciImage = [[CIImagealloc]initWithImage:[UIImageimageNamed:@"De.png"]]; // 1.创建Filter滤镜 CIFilter*filter = [CI... 阅读全文