
UI基础整理
文章平均质量分 84
HarrySun_SH
实现梦想没那么伟大,80%的人只是输给了半途而废。——My name is HarrySun
展开
-
UI_通讯录
// AppDelegate.h// Lesson10_tableView编辑//// Created by Floating_SH on 15/11/28.// Copyright © 2015年 SH. All rights reserved.//#import @interface AppDelegate : UIResponder @pr原创 2015-12-02 21:11:23 · 684 阅读 · 0 评论 -
UI基础整理-13
block&单例&tabBarControllerblock声明 : .h中 typedef void (^Block)(NSString *string);@interface CustomViewController : UIViewController//在MRC下使用copy,将pass原创 2016-01-22 19:55:24 · 407 阅读 · 0 评论 -
UI基础整理-11
自定义cell//// RootTableViewController.h// Lesson11_自定义cell//// Created by Floating_SH on 15/12/1.// Copyright © 2015年 SH. All rights reserved.//原创 2016-01-22 19:28:19 · 356 阅读 · 0 评论 -
UI基础整理-12
模态页面原创 2016-01-22 19:41:45 · 327 阅读 · 0 评论 -
UI基础整理-10
UITableView编辑(增加,删除,移动)原创 2015-12-02 20:51:55 · 456 阅读 · 0 评论 -
UI基础整理-9
UITableView表视图的相关设置原创 2015-12-02 20:42:58 · 589 阅读 · 0 评论 -
UI基础整理-8
UI_NavigationController导航视图控制器 以及 页面之间传值(利用属性从前往后传值和利用代理或者属性从后往前传值)原创 2015-12-02 20:39:08 · 394 阅读 · 0 评论 -
UI基础整理-7
scrollView 滚动视图和pageController结合使用原创 2015-12-02 20:28:48 · 501 阅读 · 0 评论 -
UI基础整理-6
UISlider就是音量条或者调节亮度的条设置大小(滑块视图默认高度34,不会被改变)设置划过区域的颜色设置未划过区域的颜色设置滑块图片左右视图(例如音量的最小和最大或者屏幕最暗和最亮)设置两侧的值(最小值和最大值)设置进度条背景颜色进度条切圆角 //创建滑块视图,默认高度34 //改这边的大小不会改变中间球的大小原创 2015-12-02 20:20:05 · 434 阅读 · 0 评论 -
UI基础整理-5
target_action , imageView , 手势:Tap(点击)、Pinch(捏合)、Rotation(旋转)、Swipe(滑动,快速移动,是用于监测滑动的方向的)、Pan (拖移,慢速移动,是用于监测偏移的量的)以及 LongPress(长按)//苹果官方建议,在APP当中,图片大小应该不大于10原创 2015-12-02 20:08:03 · 528 阅读 · 0 评论 -
UI基础整理-4
触摸事件 和 responder原创 2015-12-02 19:52:26 · 376 阅读 · 0 评论 -
UI基础整理-3
第三节:UI_LTView将一个label和一个textfield封装到一个view中,这样直接使用这个view就可以输出这个封装的类型(在.h中还需要声明这两个属性)LTView.h中@property(strong,nonatomic)UILabel *label;@property(strong,nonatomic)UIText原创 2015-11-26 13:11:24 · 470 阅读 · 0 评论 -
UI基础整理-2
第二节:UI_基础视图程序启动流程创建文本框并给定大小UITextField*textField = [[UITextFieldalloc]initWithFrame:CGRectMake(0,0,200,100)];调整位置textField.center= CGPointMake(KScreenWidth/ 2原创 2015-11-26 13:09:58 · 478 阅读 · 0 评论 -
UI基础整理-14
可视化编程原创 2016-01-22 20:00:54 · 346 阅读 · 0 评论 -
UI基础整理-15
storyboard传值storyboard不需要注册cell xib需要注册cell原创 2016-01-22 20:09:03 · 461 阅读 · 0 评论 -
UI基础整理-16
解析XML解析JSON解析原创 2016-01-22 20:21:53 · 291 阅读 · 0 评论 -
cell自适应高度
计算高度//计算高度(此方法需要在.h中声明)+ (CGFloat)calculateHeightWith:(Student *)student{ CGFloat staticHeight = kImgHeight + 3 * kGap; //staticHeight是固定高度 CGFloat dynamicHeight = [self原创 2016-01-22 19:36:52 · 863 阅读 · 0 评论 -
零散知识整理
键盘风格,自动大写,自动更正,回收键盘,手动写错误和警告,nil、Nil、NULL的区别原创 2016-01-22 20:29:01 · 521 阅读 · 0 评论 -
轮播图封装
轮播图的封装原创 2016-01-22 21:14:42 · 1345 阅读 · 0 评论 -
图片下载封装
图片下载类的封装原创 2016-01-22 21:18:52 · 631 阅读 · 0 评论 -
iOS的AppDelegate方法中的事件触发调用
应用程序进入非活动状态,应用程序进入后台,应用程序将要回到活动状态,应用程序已经进入活动状态,应用程序将要退出,当程序载入后台原创 2016-01-23 09:19:36 · 425 阅读 · 0 评论 -
iOS中UIWebView的使用详解
iOS中UIWebView的使用详解转载 2016-01-23 09:22:39 · 416 阅读 · 0 评论 -
UIScrollView极限优化:两个UIImageView循环利用
UIScrollView极限优化:两个UIImageView循环利用转载 2016-01-23 09:26:29 · 639 阅读 · 0 评论 -
UI基础学习第一天
创建并初始化window,给定屏幕大小设置背景颜色原创 2016-01-23 16:10:45 · 728 阅读 · 0 评论 -
UI基础整理-20
数据库sqlite原创 2016-01-23 09:13:01 · 370 阅读 · 0 评论 -
UI基础整理-19
初级数据持久化沙盒原创 2016-01-22 21:32:50 · 349 阅读 · 0 评论 -
UI基础整理--18
通知通知中心广播通知原创 2016-01-22 21:12:23 · 567 阅读 · 0 评论 -
UI基础整理-17
网络解析原创 2016-01-22 20:26:14 · 335 阅读 · 0 评论 -
UI基础整理-21
//创建并初始化window,给定屏幕大小self.window = [UIWindow alloc]initWithFrame:[[UIScreen mainScreen].bounds]//设置背景颜色self.window setBackgroundColor: [UIColorcolorWithRed:243/255.0green:208/255.0原创 2015-11-26 13:08:12 · 515 阅读 · 0 评论