图片价值超过千言万语:)

这是代码:
// Initialization code
UIView *myContentView = self.contentView;
UIImage *image = [UIImage imageNamed: @"bg_top.png"];
UIImageView *imageview = [[UIImageView alloc] initWithImage: image];
self.backgroundView = imageview;
[imageview release];
self.label = [self newLabelWithPrimaryColor:[UIColor blackColor] selectedColor:[UIColor redColor] fontSize:15.0 bold:YES];
self.label.textAlignment = UITextAlignmentLeft;
[myContentView addSubview:self.label];
[self.label release];
self.textField = [[UITextField alloc] init];
[self.textField setTextColor:[UIColor grayColor]];
self.textField.font = [UIFont systemFontOfSize:13.0];
//self.textField.secureTextEntry = YES;
[self.textField setKeyboardType:UIKeyboardTypeEmailAddress];
myContentView.backgroundColor = [UIColor clearColor];
[myContentView addSubview:self.textField];
[self.textField release];
Run Code Online (Sandbox Code Playgroud)
问题是如何从标签中删除丑陋的白色背景并使其透明.
| 归档时间: |
|
| 查看次数: |
2919 次 |
| 最近记录: |