随笔分类 -  iOS

上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要:cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView.backgroundColor = [UIColor colorWithRed:0.855... 阅读全文
posted @ 2015-03-31 13:51 爱生活爱代码 阅读(561) 评论(0) 推荐(0)
摘要:自从出来工作已经快三个月了~学校那边最近还有一堆事,手上又有一个比较重要的项目,接口很多,字段挺烦。这三个月在公司,做过一个上线项目,一个项目维护,周一周五每天早上9.30-晚上6.00,不知道什么时候习惯了这种作息,好像是为了弥补工作日的辛苦,每次周六周日整天整天的放松,从来没有碰过代码,生活的琐... 阅读全文
posted @ 2015-03-25 22:57 爱生活爱代码 阅读(99) 评论(0) 推荐(0)
摘要:今天写ipad的项目,然后需要调用系统相册选择图片,然后用了UIImagePickerController ,崩溃了,后来查了一下,UIImagePickerController只支持竖屏,但是。。。我竟然找到了一个解决的方法:这是因为 UIImagePickerController只支持竖屏的原因... 阅读全文
posted @ 2015-03-25 18:26 爱生活爱代码 阅读(618) 评论(0) 推荐(0)
摘要:picker_start=[[UIDatePicker alloc]initWithFrame:CGRectMake(centerView.frame.size.width/2-100,centerView.frame.size.height/2-50, 400, 80)]; [pi... 阅读全文
posted @ 2015-03-17 14:24 爱生活爱代码 阅读(706) 评论(0) 推荐(0)
摘要:实现效果如图:在cell中有一个button,选中cell改变button的选择状态 yes,选中另外一个cell,别的cell中的button选择状态变成false。 //获取当前可显示的cell 的 IndexPathfor (NSIndexPath *ind in [tableView ind... 阅读全文
posted @ 2015-03-17 13:36 爱生活爱代码 阅读(229) 评论(0) 推荐(0)
摘要:- (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents; 方法是无法传参数的,能得到的只是响应的UIButton。下面我们来学习一下如何通过UIButto... 阅读全文
posted @ 2015-03-09 17:58 爱生活爱代码 阅读(3000) 评论(0) 推荐(0)
摘要:在IPAD开发中,有一个很有趣的视图控制器,UIPopoverControllr,它的初始化必须要设置一个"内容视图",相当于它本身只是作为一个“容器”,而显示的内容还需要另外一个视图。初始化: -(void)show:(UIButton *)button{// TableViewControll... 阅读全文
posted @ 2015-03-03 16:09 爱生活爱代码 阅读(589) 评论(0) 推荐(0)
摘要:转载自:http://www.w3cschool.cc/ios/att-ios-ui-splitview-htm.html 1 分割视图的使用 2 分割视图是 iPad 的特定视图控制器用于管理两个视图控制器,在左侧是一个主控制器,其右侧是一个详细信息视图控制器。 重要的属性 3 4 de... 阅读全文
posted @ 2015-03-03 16:05 爱生活爱代码 阅读(1135) 评论(0) 推荐(0)
摘要:- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}//- (BOOL)prefersStatusBarHidden//for iOS7.0{ return YES;}需要隐藏... 阅读全文
posted @ 2015-02-13 19:31 爱生活爱代码 阅读(123) 评论(0) 推荐(0)
摘要://// AAAAViewController.m// hengp//// Created by 朱信磊 on 15/2/13.// Copyright (c) 2015年 niit. All rights reserved.//#import "AAAAViewController.h"#... 阅读全文
posted @ 2015-02-13 19:29 爱生活爱代码 阅读(355) 评论(0) 推荐(0)
摘要://// CoreAnimationEffect.h// CoreAnimationEffect//// Created by VincentXue on 13-1-19.// Copyright (c) 2013年 VincentXue. All rights reserved.// #... 阅读全文
posted @ 2015-02-11 13:31 爱生活爱代码 阅读(207) 评论(0) 推荐(0)
摘要:转载自:http://www.cocoachina.com/bbs/read.php?tid=1101681.概述UIKit直接将动画集成到UIView类中,实现简单动画的创建过程。UIView类定义了几个内在支持动画的属性声明,当这些属性发生改变时,视图为其变化过程提供内建的动画支持。执行动画所需... 阅读全文
posted @ 2015-02-11 13:29 爱生活爱代码 阅读(196) 评论(0) 推荐(0)
摘要:1 1获取系统语言设置 2 3 NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults]; 4 5 NSArray *languages = [userDefault obje... 阅读全文
posted @ 2015-02-11 13:26 爱生活爱代码 阅读(1339) 评论(0) 推荐(0)
摘要:-(void)initView{ UISwipeGestureRecognizer *left_gesture=[[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(action:)]; [left_g... 阅读全文
posted @ 2015-01-21 10:45 爱生活爱代码 阅读(957) 评论(0) 推荐(0)
摘要:首先,UIControlEvents有这个几种:UIControlEventTouchDown = 1 1)UIControlEventTouchDragInside = 1 << 2,UIControlEventTouchDragOutside = 1 << ... 阅读全文
posted @ 2015-01-16 14:43 爱生活爱代码 阅读(1196) 评论(0) 推荐(0)
摘要:if (IOS7) { self.tabBarController.tabBar.barTintColor = kTAB_BAR_GB_COLOR; }else{ self.tabBarController.tabBar.tintColor = kTAB_BAR_... 阅读全文
posted @ 2015-01-15 11:43 爱生活爱代码 阅读(1384) 评论(0) 推荐(0)
摘要:1.自定义UICollectionView2.实现协议 UICollectionViewFlowLayout *flowLayout=[[UICollectionViewFlowLayout alloc] init]; flowLayout.itemSize=CGSizeMak... 阅读全文
posted @ 2015-01-15 10:13 爱生活爱代码 阅读(2834) 评论(0) 推荐(0)
摘要:在加载网页时给一个timer定时器,规定超时时间,然后再超时时间的方法中提示超时如果没有超时,则在webview协议中的“加载完成”方法中 取消timer定时器- (void)openWebView{ if (timer) { [timer invalidate]; } ... 阅读全文
posted @ 2015-01-15 10:01 爱生活爱代码 阅读(1450) 评论(0) 推荐(0)
摘要:-(void)initTabBarView{ if (tabBarController && [kAPPDELEGATE.navigationController.viewControllers containsObject:tabBarController]) { [kAPPD... 阅读全文
posted @ 2015-01-13 18:01 爱生活爱代码 阅读(420) 评论(0) 推荐(0)
摘要:使用xcode6来运行项目,发现使用原生的tabbar上的图片不显示了。这个问题是因为xcode6中的一些api方法被废弃了,同时tabbar上图片的渲染方式发生了改变。先看xcode6中的tabbar api方法的变更:- (void)setFinishedSelectedImage:(UIIma... 阅读全文
posted @ 2015-01-13 18:00 爱生活爱代码 阅读(717) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页