UI
进击的马铃薯
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UITableViewEdit
- (void)viewDidLoad { [superviewDidLoad]; UITableView *tableView = [[UITableViewalloc] initWithFrame:self.view.boundsstyle:UITableViewStyleGrouped]; tableView.tag =1原创 2015-11-16 08:54:43 · 388 阅读 · 0 评论 -
UITableView的一些常用方法
- (void)viewDidLoad { [superviewDidLoad]; UITableView *tableView = [[UITableViewalloc] initWithFrame:self.view.boundsstyle:UITableViewStyleGrouped]; // 设置代理 tab原创 2015-11-16 08:41:49 · 467 阅读 · 0 评论 -
WebView改变网页文字大小、颜色,背景颜色
改变文字大小比例首先webview加载HTML字符串NSString *htmlString = @"someHtmlStrimg"self.webview.delegate = self;[self.webview loadHTMLString:_htmlString baseURL:nil];123之后实现代理方法- (void)webViewDidFinishLo转载 2015-12-17 17:22:47 · 1200 阅读 · 0 评论 -
Masonry介绍与使用
前言1MagicNumber -> autoresizingMask -> autolayout以上是纯手写代码所经历的关于页面布局的三个时期在iphone1-iphone3gs时代 window的size固定为(320,480) 我们只需要简单计算一下相对位置就好了在iphone4-iphone4s时代 苹果转载 2016-01-04 19:43:29 · 521 阅读 · 0 评论 -
线程与进程的区别和联系
1.定义进程 是具有一定独立功能的程序关于某个数据集合上的一次运行活动,进程是系统进行资源分配和调度的一个独立单位.线程 是进程的一个实体,是CPU调度和分派的基本单位,它是比进程更小的能独立运行的基本单位.线程自己基本上不拥有系统资源,只拥有一点在运行中必不可少的资源(如程序计数器,一组寄存器和栈),但是它可与同属一个进程的其他的线程共享进程所拥有的全部资源.2.关系原创 2016-01-21 18:01:37 · 485 阅读 · 0 评论 -
iPad开发之UIPopoverController
UIPopoverController 是针对iPad开发的控件 先建一个内容控制 SecondTableViewController然后在 ViewController.m中#import "ViewController.h"#import "SecondTableViewController.h"#import "ThirdViewContr原创 2016-01-06 08:57:10 · 402 阅读 · 0 评论 -
UITextField 常用属性及方法
//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;转载 2015-12-26 10:32:57 · 413 阅读 · 0 评论 -
UIView UILabel UITextField UIButton UIImageView 常用属性
UILabel *label = [[UILabelalloc] initWithFrame:CGRectMake(20,40, 80, 30)];// 背景颜色 label.backgroundColor = [UIColorgreenColor];// 添加文字 label.text =@"神剑";// 文字对齐原创 2015-10-31 11:21:45 · 538 阅读 · 0 评论 -
简单的实现环形比例图
//初始化ProportionLoopView *loopView = [[ProportionLoopViewalloc]initWithFrame:CGRectMake(0,0,100,100)]; loopView.backgroundColor = [UIColorclearColor]; loopView.center = self原创 2017-07-20 19:54:26 · 2498 阅读 · 0 评论
分享