摘要: UITextField 怎么设置成为一个 *号密码框 呢?可以在 Interface Builder 里面直接设置吗?Attributes inspector 中 Text Field 下选中 Secure就可以了。 阅读全文
posted @ 2013-07-16 14:37 子福当自强 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 最正规的办法,用通知step 1:在进入视图的时候添加监视:(viewDidLoad什么的)复制代码// Observe keyboard hide and show notifications to resize the text view appropriately. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCente 阅读全文
posted @ 2013-07-16 14:01 子福当自强 阅读(732) 评论(0) 推荐(0) 编辑
摘要: iOS 系统自带的 View 组件都是正方形的,看起来都太生硬,有时候我需要变成圆角形式,如下图: 具体的实现是使用QuartzCore库,下面我具体的描述一下实现过程: • 首先创建一个项目,名字叫:ipad_webwiew • 利用Interface Builder添加一个UIWebView,然后和相应的代码相关联 • 添加QuartzCore.framework 代码实现:头文件:[java]view plaincopy#import
#import
@interfaceipad_webwiewViewController:UIViewController{
IBOutletUIWeb 阅读全文
posted @ 2013-07-16 13:32 子福当自强 阅读(490) 评论(0) 推荐(0) 编辑
悟道