Capstone日志2017-12-08

来源:互联网 发布:win10 mysql卸载 编辑:程序博客网 时间:2024/05/22 17:23

今天我学会了storyboard的UI设计   并且能够与viewcontrol相互连接起来  

我今天还独立完成了UI的一个页面设计,又了解并掌握了 lable 和 button的用法 ,及其他们的属性

视图的生命周期


frame和bounds还有center的一些区别









CGRect screen = [[UIScreen mainScreen] bounds];屏幕大小

CGFloat labelWidth = 100;

CGFloat labelHeight=  50;

CGFloat labelTopView  = 150; 上边距

x轴坐标 = screen.size.widh - labelWidth/2

CGFloat x= screen.size.widh - labelWidth/2

y轴坐标    CGFloat y=  labelTopView


  //文本布局模式 居中,左右等

    lable1.textAlignment = NSTextAlignmentCenter;

    //文字的颜色

    lable1.textColor = [UIColor blackColor];

 lable1.text = @“沈阳北软信息职业技术学院";




CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)

CGPointMake(<#CGFloat x#>, <#CGFloat y#>)

 CGSizeMake(<#CGFloat width#>, <#CGFloat height#>)


textfile只能输入一行

textview多行