分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
UIView *footerView = [[UIView alloc]initWithFrame:CGRectMake(10, 100, 300, 180)];
UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 100, 300, 150)];
label.text = @"Hello world! Hello world!Hello world! Hello world! Hello world! Hello world! Hello world! Hello world!Hello world! Hello world! Hello world! Hello world! Hello world! Helloworld!";
//
背景颜色为红色
label.backgroundColor = [UIColor redColor];
//
设置字体颜色为白色
label.textColor = [UIColor whiteColor];
//
文字居中显示
label.textAlignment = UITextAlignmentCenter;
//
自动折行设置
label.lineBreakMode = UILineBreakModeWordWrap;
label.numberOfLines = 0;