码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
scorllview的 setContentSize
// [UIView animateWithDuration:0.75 animations:^{// [self.scrollView setContentOffset:CGPointMake([UIScreen mainScreen].bounds.size.width, 0)];// ...
分类:其他好文   时间:2015-05-07 18:25:31    阅读次数:139
UISlider 的属性
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:其他好文   时间:2015-05-06 16:51:56    阅读次数:171
UISwitch 开关
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:其他好文   时间:2015-05-06 16:45:30    阅读次数:137
IOS中UIScrollView的contentSize、contentOffset和contentInsert属性
IOS中,UIScrollView继承于UIView,扩展了滚动,缩放功能,双协议,其中最常用的UITableview就是继承于该类。UIScrollView中的frame、bounds、contentSize、contentOffset和contentInset属性,这几个属性一直都容易混淆,自己...
分类:移动开发   时间:2015-05-06 10:26:55    阅读次数:178
UITextField设置leftView的Insets
Insets就是css中的padding我们给UITextField设置了leftView,目的是在文本输入框左側显示一个图标。可是在ios7里,这个图标会紧紧地挨着TextField的左边框,非常不美观,所以就希望设置一个Insets。可是直接设置ImageView的bounds不行,须要用以下这...
分类:其他好文   时间:2015-05-05 18:50:19    阅读次数:140
第一个 练习 计算器
计算器简单练习: frame 用法与NSRect CGRect用发相似 它包括 x , y , widht ,height 该view在父view坐标系统中的位置和大小(参照点是父亲的坐标系统) bounds :该view在本身坐标系统中 的位置和大小。(参照点是本身坐标系统)所以一般情况下x...
分类:其他好文   时间:2015-05-04 15:06:06    阅读次数:118
iOS开发UI基础—手写控件,frame,center和bounds属性
一、手写控件1.手写控件的步骤(1)使用相应的控件类创建控件对象(2)设置该控件的各种属性(3)添加控件到视图中(4)如果是button等控件,还需考虑控件的单击事件等(5)注意:View Contollor和view的关系2.注意点在OC开发中,Storyboard中的所有操作都可以通过代码实现,...
分类:移动开发   时间:2015-05-03 19:00:33    阅读次数:127
iOS开发UI篇—CAlayer(创建图层)
转自:http://www.cnblogs.com/wendingding/p/3800652.htmliOS开发UI篇—CAlayer(创建图层)一、添加一个图层添加图层的步骤:1.创建layer2.设置layer的属性(设置了颜色,bounds才能显示出来)3.将layer添加到界面上(控制器v...
分类:移动开发   时间:2015-05-03 18:55:21    阅读次数:194
UILabel和TextView手动换行
UILabel 的换行符是 '\n';例如:1 _explainsNotificationLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 40)];2 _explains...
分类:其他好文   时间:2015-05-03 13:14:42    阅读次数:425
Ios 6和ios7的适配
Ios 6和ios7的适配 1.普通的 ViewController:让view的显示从状态栏下面开始,只需在viewDidLayoutSubviews调整 view的bounds         CGRect bounds = self.view.bounds;   bounds.origin.y =  - [self.topLayoutGuide length]; self.view....
分类:移动开发   时间:2015-04-28 11:57:19    阅读次数:129
955条   上一页 1 ... 73 74 75 76 77 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!