iOS图片和按钮的使用
来源:互联网 发布:nginx 日志等级 编辑:程序博客网 时间:2024/05/22 00:28
CGRect logoRect = CGRectMake(200, 0, 100, 200); _logo = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"HelloWorld.png"]]; _logo.contentMode = UIViewContentModeScaleAspectFit; _logo.frame = logoRect; [self.view addSubview:_logo]; CGRect phponeNumberRect = CGRectMake(20, 200, 280, 30); _phoneNumber = [[UITextField alloc] initWithFrame:phponeNumberRect]; _phoneNumber.borderStyle = UITextBorderStyleRoundedRect; [self.view addSubview:_phoneNumber]; CGRect passwordRect=CGRectMake(20, 240, 280, 30); _passWord=[[UITextField alloc]initWithFrame:passwordRect]; _passWord.borderStyle=UITextBorderStyleRoundedRect; [self.view addSubview:_passWord]; CGRect loginButtonRect = CGRectMake(10, 280, 300, 25); _loginButton = [[UIButton alloc] initWithFrame:loginButtonRect]; [_loginButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal]; [_loginButton setTitle:@"登陆" forState:UIControlStateNormal]; [_loginButton addTarget:self action:@selector(login:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:_loginButton];
0 0
- iOS图片和按钮的使用
- iOS---悬浮按钮的创建和使用
- IOS 设置按钮的的图片和标题位置
- iOS心得7 按钮的图片和文字自定义位置
- ios 按钮的图片和文字上下排版
- 使用图片做按钮的几种方法和优劣
- 关于图片按钮的使用
- 关于图片按钮的使用
- IOS(UI)_UIButton(按钮)和UIImageView(图片按钮)
- iOS按钮的使用和动画的实现
- iOS设置按钮的图片为Aspetfit
- iOS 设置按钮标题、图片的偏移
- ios定制按钮图片
- iOS 图片 按钮 切圆角
- IOS开发 IOS7中使用图片作为导航栏返回按钮的背景
- iOS学习- 07 使用sketch做的图片做自定义按钮
- ios设置按钮点击时的文字和图片(而非非背景)
- iOS UITableViewCell 改变系统选中按钮(UITableViewCellEditControl)的默认图片和位置
- 散列表
- 了解iPhone应用程序中App目录结构
- java/spring/代理
- html 表单简单弹出框判断
- Parcelable接口和serializable系列的Activity数据类传递
- iOS图片和按钮的使用
- HTML5简明教程-1.1.HTML5画布Canvas
- springMVC web项目 数据库用户名密码加密解密
- 亚克力箱体尺寸
- 构建最小根文件系统
- Maven学习(二):属性、坐标与依赖
- Android基础系列之Activity(二)
- JAVA技术总监需求
- leetcode divide two int