织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

欧博c programmatically creating labels

时间:2025-08-03 22:30来源: 作者:admin 点击: 6 次
I am creating the label programmatically with dynamic text, and next to label one more textview is present which is dynamic content, and next to text

I am creating the label programmatically with dynamic text, and next to label one more textview is present which is dynamic content, and next to text view there is an imageview. These three are not aligning correctly,

_textView = [[[JSTwitterCoreTextView alloc] initWithFrame:CGRectMake(10,60,self.view.frame.size.width,130)] autorelease]; _textView.textColor=[UIColor whiteColor]; _textView.linkColor=[UIColor lightTextColor]; [self.view addSubview:_textView]; CGFloat Lsize=_textView.bounds.size.height+_textView.bounds.origin.y; //CGFloat width = [UIScreen mainScreen].bounds.size.width - 50; //CGFloat height = [self textHeight:text] + 10; //CGRect frame = CGRectMake(10.0f, 10.0f, width, height); startLine=[[UILabel alloc]initWithFrame:CGRectMake(0,Lsize, 320, 2)]; [self.view addSubview:startLine];

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-08-05 22:08 最后登录:2025-08-05 22:08
栏目列表
推荐内容