iphone - 如何创建像UITableViewCell这样的TextField?

标签 iphone ios cocoa-touch ipad uikit

Possible Duplicate:
Having a UITextField in a UITableViewCell


我尝试了几天,但是没有发现任何有用的东西,所以我的问题是:如何创建UITableViewCell UITextField Like?

http://i.stack.imgur.com/poeay.png

最佳答案

只需将UITextField添加到这样的UITableViewCell中即可。

UITextField* textField = [[UITextField alloc] initWithFrame:frame]; 

[cell addSubview:textField];

关于iphone - 如何创建像UITableViewCell这样的TextField? ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7890316/

相关文章:

objective-c - 如何在 UIMarkupTextPrintFormatter 中添加图片?

ios - 如何使用 IndexPathsForSelectedRows?

ios - UINavigationController 作为 iPhone 上的弹出窗口?

ios - 提交到应用商店 phonegap 应用图标问题

ios - GADBannerViewDelegate 不会在 Swift 中触发 adViewDidReceiveAd

ios - 在 IOS 中的 PushSegue 期间,目标 Controller View 出现在源 View Controller 中

ios - 按完成或uitextfield的返回键调用函数

iphone - 应用程序进入前台时刷新值

iphone - 在 UITableViewCellAccessoryDe​​tailDisclosureButton 下显示 UIMenuController

android - 是否可以在快速 blox 聊天中发送音频文件和 doc/pdf 文件