摘要: 最近的一个项目有一个聊天模块,需要对联系人列表右侧标题栏标题颜色做修改,系统默认颜色如下 修改后只需在初始化tableView后做如下操作:tableView.sectionIndexBackgroundColor = [UIColor clearColor];tabelView.sectionIn... 阅读全文
posted @ 2015-01-09 10:20 站在巨人肩膀上看巨人 阅读(120) 评论(0) 推荐(0) 编辑
摘要: UIScrollView : UIViewUIScrollView 在使用过程中要定义成一个成员变量,便于在视图控制器中全局使用._scrollView = [[UIScrollViewalloc] initWithFrame:CGRectMake(0, 30, 320, 320)]; _scrollView.backgroundColor = [UIColorgrayColor]; // 让UIScrollView滑动,必须设定滑动区域 [_scrollViewsetContentSize:CGSizeMake(320*8, 320*8)]; // 设置UIScrollView分页... 阅读全文
posted @ 2013-07-01 10:09 站在巨人肩膀上看巨人 阅读(348) 评论(0) 推荐(0) 编辑
摘要: UITabBarController : UIViewControllerUITabBarController :管理UIViewController(以数组的方式管理-----并列关系)UINavigationController :管理UIViewController(以栈的方式管理-----层级关系)UITabBarController : 高度为49px,如果要加自定义的图片到Item上,图片高度为30px//UITabBarController : 管理UIViewController UITabBarController *tabarCtrl = [[UITabBarContro. 阅读全文
posted @ 2013-07-01 09:29 站在巨人肩膀上看巨人 阅读(320) 评论(0) 推荐(0) 编辑
摘要: UISegmentedControl:(多段选择器)NSArray *arr = [NSArrayarrayWithObjects:@"Lucy",@"Lily",@"OK", nil]; UISegmentedControl *segCtrl = [[UISegmentedControlalloc]initWithItems:arr]; [segCtrl setFrame:CGRectMake(0, 0, 210, 40)]; [segCtrl addTarget:selfaction:@selector(click:) forCo 阅读全文
posted @ 2013-07-01 09:24 站在巨人肩膀上看巨人 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: IOS UI之导航控制器UINavigationController : UIViewControllerUINavigationController 用于管理UIViewCotrollerUINavigationController 由toolbar + custom content + bar三部分组成, 以栈的形式管理UIViewController,栈底必须有一个UIViewController,称为基栈.Navigation view由下面三部分组成:Navigation bar(top) / Custom content(controller.view,bosom) / Navig 阅读全文
posted @ 2013-07-01 09:20 站在巨人肩膀上看巨人 阅读(777) 评论(0) 推荐(0) 编辑
摘要: UIViewController : NSObject视图控制器,管理UIViewMVC模式: Model-View-Controller(模型-视图-控制器)Delegate:范围小,具体实现某一个功能的时候使用实现代理的步骤:1.声明一个协议(本质上是声明接口,可以是多个),协议中的接口不实现2.被代理对象:定义一个成员变量,id delegate 同时实现delegate的getter和setter方法3.代理对象要遵循这个协议,并且协议的实现也在代理对象中自定义UIViewController@interface CustomUIViewController : UIViewContr 阅读全文
posted @ 2013-06-30 11:04 站在巨人肩膀上看巨人 阅读(318) 评论(0) 推荐(0) 编辑
摘要: UIView : NSObjectframe center boundsframe 相对于父视图center 相对于父视图 (CGPoint)point;bounds 相对于视图本身//设置view的center属性- (void)setCenter:(CGPoint)point;//设置view的center属性,会改变视图的frame- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;//在父视图上添加一个子视图,index为子视图在父视图上所处的位置,从0开始.- (void)exchangeSubviewAtInd 阅读全文
posted @ 2013-06-30 10:55 站在巨人肩膀上看巨人 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 沙盒 : IOS给每一个App分配一定的独立的存储空间//获取沙盒路径NSString *path = NSHomeDirectory();如上图所示的文件夹,即为沙盒.沙盒空间彼此独立,数据私有异步:可以同时进行多个事件的进程(非阻塞).异步事件模型:程序无法知道用户何时出发应用的监听机制,用户一旦触发,应用立即做出响应.UIButton : (UIControl : UIView)+ (id)buttonWithType:(UIButtonType)buttonType;- (void)setFrame:(CGRect)rect;- (void)setTitle:(NSString )ti 阅读全文
posted @ 2013-06-30 10:52 站在巨人肩膀上看巨人 阅读(715) 评论(0) 推荐(0) 编辑
摘要: UIKit结构体系Bundle display name --—>修改应用名Target —>App Icons—> 单击 —>Select File 选择…-Info.plist 文件要负责保存应用程序的配置信息InfoPlist.strings 主要是让应用程序哆多语言支持,…-Prefixpch 全局头文件3张Default图片是开启应用程序时加载,适配设备main.m文件: UIApplicationMain(三个作用) 1.建立一个应用程序对象, 2.建立一个应用程序代理对象 3.启动事件循环,程序一直运行AppDelegate类:- (BOOL)applic 阅读全文
posted @ 2013-06-30 10:47 站在巨人肩膀上看巨人 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 前面将我的sdk全部更新了,导入了所有的sdk版本后,打开eclipse后启动avd时发现了如下错误:This Android SDK requires Android Developer Toolkit version 21.1.0 or above.在网上找了一下,发现可以有以下解决办法:1.更新adt工具,具体方法上网查找。2.继续使用以前的adt,只需要做如下修改即可(本人采用):在android_sdk/tools/lib下的plugin.prop文件里被变更为# begin plugin.propplugin.version=20.0.0# end plugin.prop重新启动e 阅读全文
posted @ 2013-03-24 10:41 站在巨人肩膀上看巨人 阅读(140) 评论(0) 推荐(0) 编辑