代码改变世界

UIAlertView

2015-11-07 09:47 by xiangjune, 146 阅读, 0 推荐, 收藏, 编辑
摘要:UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"确定吗?" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"ok",... 阅读全文

UIScrollView

2015-11-07 09:28 by xiangjune, 118 阅读, 0 推荐, 收藏, 编辑
摘要:// UIScrollView UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(100, 100, 500, 300)]; scrollView.backgroundColor = [UIColor... 阅读全文

递归获取字符串内的所有图片src地址

2015-10-30 10:22 by xiangjune, 397 阅读, 0 推荐, 收藏, 编辑
摘要:// 递归调用获取字符串内所有的src地址-(NSMutableArray *)getImageSrcUrlWithString:(NSString *)str withArray:(NSMutableArray *)myArray{ NSMutableString *sourceStr = [N... 阅读全文

UIImageView

2015-10-30 10:21 by xiangjune, 140 阅读, 0 推荐, 收藏, 编辑
摘要:// ----------------------------------------------UIImageView---------------------------------------------- UIImageView *imageView = [[UIImageView all... 阅读全文

button点击传多个参数

2015-10-21 17:54 by xiangjune, 1002 阅读, 0 推荐, 收藏, 编辑
摘要:// --------------------button点击传多个参数------------------------UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];btn.frame = CGRectMake(100, 1... 阅读全文

define 实例

2015-10-21 17:53 by xiangjune, 338 阅读, 0 推荐, 收藏, 编辑
摘要:// ----------------------------------------------define-------------------------------------// #define 常量名 代替值// 定义字符串常量#define MY_STR "it is a string... 阅读全文

UILabel详解

2015-10-20 20:57 by xiangjune, 209 阅读, 0 推荐, 收藏, 编辑
摘要:// ----------------------UILabel--------------------------- UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; label.t... 阅读全文

UIButton详解

2015-10-20 20:56 by xiangjune, 269 阅读, 0 推荐, 收藏, 编辑
摘要:// ----------------------------------UIButton------------------------------ // UIButtonTypeSystem 点击文字会有效果,变色 UIButtonTypeCustom 无点击效果 UIButton *but... 阅读全文

KVO

2015-10-15 20:44 by xiangjune, 151 阅读, 0 推荐, 收藏, 编辑
摘要:// ———————————————————————KVO——————————————// 定义对象,设置KVOp = [[Person alloc] init];p.name = @"zhangsan";p.age = 22;[p addObserver:self forKeyPath:@"age... 阅读全文

Foundation

2015-10-15 20:07 by xiangjune, 301 阅读, 0 推荐, 收藏, 编辑
摘要:// —————————————— FOUNDATION框架结构体 // NSRANGE // 查找某个字符串在另一个字符串中的范围,若是找不到 length==0 location==NSNotFound==-1 NSString *str1 = @"hello world... 阅读全文
上一页 1 ··· 7 8 9 10 11 12 下一页