下面张图片,本来是设计来做按钮背景的: button.png,尺寸为:24x60现在我们把它用作为按钮背景,按钮尺寸是150x50:C代码 //得到view的尺寸CGSizeviewSize=self.view.bounds.size;//初始化按钮UIButton*button=[[UIButto...
分类:
移动开发 时间:
2014-11-12 14:56:02
阅读次数:
269
CGRect frame = [[UIScreen mainScreen] bounds];NSLog(@"frame :%@",frame);这样输入是nullNSLog(@"frame :%f",frame.size.width);这样有值[[UIScreen mainScreen] bound...
分类:
移动开发 时间:
2014-11-08 10:21:02
阅读次数:
176
//在.h文件中声明一下
//例如:@property(nonatomic,strong)UITableView *table;
//创建一个UITableView
self.table = [[UITableView alloc] initWithFrame:self.bounds style:(UITableViewStylePlain)];
//设置行...
分类:
移动开发 时间:
2014-11-06 23:41:22
阅读次数:
439
考虑到6和6+进入使用造成的“破坏”,自动布局这个武器“是时候表演真正的技术了!”。
刚在学习使用“约束”的时候,构建一个label准备试一试,在使用到init方法时,想到没必要设置frame,因为frame根本不能写死,但是我又想这个label有固定的大小,那怎么办呢?那就只用init方法构建,然后设置bounds,虽然可以,但是觉得浪费,而且这样设置的宽高没有添加“约束”,这样的宽高是...
分类:
其他好文 时间:
2014-11-02 09:22:17
阅读次数:
214
iOS开发UI基础—手写控件,frame,center和bounds属性一、手写控件1.手写控件的步骤(1)使用相应的控件类创建控件对象(2)设置该控件的各种属性(3)添加控件到视图中(4)如果是button等控件,还需考虑控件的单击事件等(5)注意:View Contollor和view的关系2....
分类:
移动开发 时间:
2014-11-02 09:16:22
阅读次数:
318
转自:http://stackoverflow.com/questions/17074365/status-bar-and-navigation-bar-appear-over-my-views-bounds-in-ios-7Question:I recently downloaded Xcode ...
分类:
移动开发 时间:
2014-11-01 16:06:54
阅读次数:
222
public Form1() { InitializeComponent(); //控件的行为 listView1.Bounds = new Rectangle(new Point(10, 10), new Size(2...
今天在公司搭建了一台negios服务器。在添加被监控服务器后,几个监控的服务都是ok的,但主机显示是down的。环境说明:nagiosserver:redhat6.3x64最小化安装关闭selinuxandiptablesnagios-3.4.1.tar.gznagios-plugins-2.0.3.tar.gznrpe-2.15.tar.gz按照以前的手册一步步操作。..
分类:
移动开发 时间:
2014-11-01 06:23:34
阅读次数:
283
Android - Layout clipChildren属性本文地址: http://blog.csdn.net/caroline_wendyandroid:clipChildren: Defines whether a child is limited to draw inside of its bounds or not.子控件是否它的范围之内,默认是true,如果设为false,则子控件可...
分类:
移动开发 时间:
2014-10-30 21:04:24
阅读次数:
170
Package imagedefines theImageinterface:package imagetype Image interface { ColorModel() color.Model Bounds() Rectangle At(x, y int) color.Col...
分类:
其他好文 时间:
2014-10-28 23:49:25
阅读次数:
220