下载此文档

IOS开发自定义键盘.doc


文档分类:IT计算机 | 页数:约4页 举报非法文档有奖
1/4
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/4 下载此文档
文档列表 文档介绍
IOS 开发 Creating Custom Keyboards ( 自定义键盘) 1. 新建 View-based-app 起名: Feelings 中添加一个 UITextView 3. 添加一个新的 XIB 起名: MoodKeyboard IB 中打开 MoodKeyboard, 从 library 中拖一个 toolbar 到 View 中,将 View 的高度设为 toolbar 的高度(44px)! 然后再拖一个 UIButton 到 toolbar 中, 如图 5. 设置 MoodKeyboard-view-Toolbar 的 Autosizing, 如图 6. 将 moodKeyboard 的 File's Owner 的 Class Identify 选为 FeelingsViewController 7. 到些,FeelingsViewController 控制都两个 XIB, 一个是 , 另一个是 中代码如下: #import <UIKit/> ***@interface FeelingsViewController : UIViewController { } ***@property ( nonatomic , retain ) IBOutlet UIView *moodKeyboard; ***@property ( nonatomic , retain ) IBOutlet UITextView *textView; -( IBAction )btnClicked:( id )sender; ***@end 中添加代码如下***@synthesize textView,moodKeyboard; -( IBAction )btnClicked:( id )sender{ [ textView setText : @"AAA" ]; [ self . textView resignFirstResponder ]; }-( vo

IOS开发自定义键盘 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数4
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小254 KB
  • 时间2017-02-18