您的位置:首页 > 编程语言

部分代码总结7.29

2011-07-29 14:19 281 查看
UItextfield *textfield =[ [uitextfield alloc] init]textfield .contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
textfield .contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;textfield .placeholder= @"+++";//值textfield.delegate = self;//设置委托,如果要要使用uitextfield的方法,则要使用委托,并且添加UITextFieldDelegate
无论添加什么都可以放到contentview上

UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(380, 60, 610, 650)];

self.view = contentView;

bgImageView.userInteractionEnabled = YES;//背景图片可以操作
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐