请输入标题 请输入文本内容
来源:互联网 发布:opencv 灰度共生矩阵 编辑:程序博客网 时间:2024/05/01 20:31
//
// ViewController.m
// 123
//
// Created by 红珊瑚 on 15/5/6.
// Copyright (c) 2015年 红珊瑚. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()<UITextFieldDelegate,UITextViewDelegate>
{
UILabel *label;
}
@end
@implementation ViewController
- (void)viewDidLoad
{
[superviewDidLoad];
UITextField *textField=[[UITextFieldalloc]initWithFrame:CGRectMake(30,60,260,30)];
textField.backgroundColor=[UIColorblueColor];
textField.text=@"请输入标题";
textField.textColor=[UIColorlightGrayColor];
//textField.alpha=0.7;
UITextView *textView=[[UITextViewalloc]initWithFrame:CGRectMake(20,120,280,200)];
textView.backgroundColor=[UIColorbrownColor];
label=[[UILabelalloc]initWithFrame:CGRectMake(30,120,260,30)];
label.text=@"请输入文本内容";
label.alpha=0.5;
[self.viewaddSubview:textField];
[self.viewaddSubview:textView];
[self.viewaddSubview:label];
textField.delegate=self;
}
-(void)textFieldDidBeginEditing:(UITextView *)textView
{
NSLog(@"点");
label.alpha=1;
//[self.view addSubview:label];
}
-(void)textFieldDidEndEditing:(UITextView *)textView
{
NSLog(@"放");
label.text=nil;
//label.alpha=0;
//[label removeFromSuperview];
}
- (void)didReceiveMemoryWarning
{
[superdidReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
- 请输入标题 请输入文本内容
- 请输入关键字
- 请输入关键字
- WEB_请输入密码
- 请输入123
- 请输入密码
- DZ7首页粘贴发表时出现“您没有输入标题或内容,请返回填写。”的解决方法
- 输入框:请输入关键字 小功能
- 请输入盘子的个数
- 请输入十进制验证码
- CTF入门--请输入密码
- 请输入转化的大写字母
- Python入门:请重新输入并获取最新的一次输入的内容
- http://www.cnblogs.com/yungboy/archive/2009/03/11/1408286.html 请输入标题
- [VB.NET]请问题如何使用 正值表达式 来控制使用者Textbox控件输入内容?
- 请写出用于校验HTML文本框中输入的内容全部为数字的javascript代码
- 微信中关闭网页输入内容时的安全提示 [干掉 “防盗号或诈骗,请不要输入QQ密码”]
- EditText 文本内容输入限制
- source insight支持object-c显示的设置
- visual studio如何自定义快捷键
- 第k大的数——分治法
- 5月总结
- vector相关的模板类函数声明与实现
- 请输入标题 请输入文本内容
- Currency campus line of digital red song celebrates victory 70 years
- windows 下安装nodejs及其配置环境
- oracle 使用comment语句添加表注释
- 小谈虚函数实现动态绑定(多态)
- Linux系统下如何查看已经登录用户
- xPath小结
- Activity not started, its current task has been brought to the front
- JAVA环境配置关于CLASSPATH中 dt.jar 、 tools.jar是干嘛的,一定要放么?