- 博客(13)
- 收藏
- 关注
转载 Swift - 按钮(UIButton)的用法
1,按钮的创建 (1)按钮有下面四种类型: UIButtonType.ContactAdd:前面带“+”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果 UIButtonType.DetailDisclosure:前面带“!”图标按钮,默认文字颜色为蓝色,有触摸时的高亮效果 UIButtonType.System:前面不带图标,默认文字颜色为蓝色,有触摸时的高亮效果 UIButtonTy
2015-11-19 18:00:32
583
原创 storyboard代码页面跳转
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"UserdataViewCell" bundle:nil]; UserdataViewController *UserdataView = [storyBoard instantiateViewControllerWithIdentifier:@"Userdata
2015-10-13 13:01:37
459
原创 导航栏隐藏显示
etNavigationBarHidden 为yes 隐藏导航栏 no 显示 animated yes 动画隐藏 no 直接隐藏 -(void)viewWillAppear:(BOOL)animated { [superviewWillAppear:animated]; [self.navigationController setN
2015-10-13 13:00:30
566
原创 ios自定义导航栏navigationbar的颜色或者图片
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"头图.png"]forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.tintColor = [UIColor purpleCol
2015-10-13 12:59:49
468
原创 图片下拉缩放效果
storyboard 控件添加 然后关联 然后.m如下 - (void)viewDidLoad { [superviewDidLoad]; // Do any additional setup after loading the view, typically from a nib. self.uitableView.co
2015-10-13 12:59:09
565
原创 iOS自带同步POST请求
//第一步,创建URL NSURL *url = [NSURLURLWithString:jsonSourceURLsousuo]; //第二步,创建请求 NSMutableURLRequest *request = [[NSMutableURLRequestalloc]initWithURL:urlcachePolicy:NSUR
2015-10-13 12:57:55
599
转载 如何将你的程序打包成ipa
原文地址:如何将你的程序打包成ipa" style="text-decoration:none; color:rgb(82,102,115)">[iOS] 如何将你的程序打包成ipa作者:sandy 今天群里朋友问起了这个问题,顺便就写下这个大概的流程: 第一步: 这里需要注意,要选择真机,否则Archive 会是灰色的。 如何将你的程序打包成ipa" style="margin:
2015-10-13 12:57:20
1287
转载 uilabel 文字修改为不同颜色
在项目开发中,我们经常会遇到在这样一种情形:在一个UILabel 使用不同的颜色或不同的字体来体现字符串,在iOS 6 以后我们可以很轻松的实现这一点,官方的API 为我们提供了UILabel类的attributedText, 使用不同颜色和不同字体的字符串,我们可以使用NSAttributedText 和 NSMutableAttributedText 类来实现。 现实代码: .h
2015-10-13 12:56:20
691
原创 代理事件获取点击对应Cell
- (void)cell:(YDMarketMessageBoardTableViewCell *)aCell addMessageBoardPhotoImageBtnClick:(id)aSenser { DDLogDebug(@"留言头像点击事件"); NSIndexPath *indexPah = [self.tableView indexPathForC
2015-10-13 12:55:20
306
原创 判断NSString中是否包含某个字符
NSString *_string = [NSStringstringWithFormat:@"123123.123"]; NSRange _range = [_string rangeOfString:@"."]; if (_range.location != NSNotFound) { //有空格 NSLog(@"有");
2015-10-13 12:54:40
626
原创 ios UITableview 刷新某一个cell 或 section
//一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; //一个cell刷新
2015-10-13 12:12:08
313
原创 代码添加约束
UIButton *btn = [[UIButtonalloc] init]; self.button = btn; self.button.backgroundColor = [UIColoryellowColor]; NSDictionary *views = NSDictionaryOfVariableBindings(_button, s
2015-10-13 12:11:24
488
转载 IOS 注册苹果开发者账号
博主经历了漫长的折磨,终于将苹果开发者账号拿下,所以将我的经验记录下来,供后人参阅。 1.直接进入苹果官网https://developer.apple.com/ 点击Member Center (开发者中心) 2.进入后点击: 3.上面就是说,你要遵守一些协议什么的,直接下一步就好了,现在已经在接近主要步
2015-10-13 12:04:33
908
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人