iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
PopeyeLau
V2EX  ›  iDev

请教, iOS 中表单大家用什么方式实现?

  •  
  •   PopeyeLau ·
    popeyelau · Aug 28, 2015 · 6205 views
    This topic created in 4086 days ago, the information mentioned may be changed or developed.
    如图。



    编程小白,最近遇到一些下单的表单处理。
    目前是按照之前同事的方式,在自定义 Cell 中插入大量表单内容。
    求指导,感谢。
    26 replies  •  2015-08-31 09:07:20 +08:00
    PopeyeLau
    PopeyeLau
    OP
    Aug 28, 2015
    1
    贴错一张图片,补充。
    haozhang
    haozhang
    Aug 28, 2015 via iPhone❤️1
    2
    不用 tableview 的话也可以用 label+input ,我就是这么干的。
    SeanGeek
    SeanGeek
    Aug 28, 2015❤️1
    3
    tableView 吧,自定义 Cell
    PopeyeLau
    PopeyeLau
    OP
    Aug 28, 2015
    4
    @SeanGeek 目前就是这种方式
    yellowV2ex
    yellowV2ex
    Aug 28, 2015❤️1
    5
    没事的,就用 cell 吧,苹果自带的 app 和设置都是用 UITableView 的
    kobe1941
    kobe1941
    Aug 28, 2015
    6
    @haozhang 求详细?
    haozhang
    haozhang
    Aug 28, 2015
    7
    @kobe1941 就是很简单的输入框啊,顶多自定义些样式,在左边用 label ,右边输入框,放在一个 view 里面...
    loveuqian
    loveuqian
    Aug 28, 2015 via iPhone
    8
    那左边那一条飞机怎么弄的?
    anzaimary
    anzaimary
    Aug 28, 2015
    9
    飞机会跟着动么?如何实现?
    judi0713
    judi0713
    Aug 28, 2015
    10
    下面的是 view 然后左边一个图片右边一个 tableview ?
    PopeyeLau
    PopeyeLau
    OP
    Aug 28, 2015
    11
    @loveuqian @anzaimary @judi0713

    图片中的一整块,都是一个 cell.
    iEason
    iEason
    Aug 28, 2015❤️1
    12
    用 UITableView 实现是最好最有效率的可扩展性也是最好的,要知道你这列表结构并不复杂 。
    iEason
    iEason
    Aug 28, 2015
    13
    cell 不是你这么用的。新手?
    PopeyeLau
    PopeyeLau
    OP
    Aug 28, 2015 via iPhone
    14
    @iEason 对 ,新手 应该是一个 field 一个 cell ?
    loveuqian
    loveuqian
    Aug 28, 2015
    15
    @PopeyeLau 一整块是一个 cell 。。。。。。。
    judi0713
    judi0713
    Aug 28, 2015
    16
    我勒个去一整快是一个 cell ,是在 cell 里有放了 tableview 么
    iEason
    iEason
    Aug 28, 2015
    17
    @PopeyeLau 那几个图标(加号和倒三角) 有什么需求吗?
    PopeyeLau
    PopeyeLau
    OP
    Aug 28, 2015
    18
    @judi0713
    cell 里面全是 Label,TextFiled 之类的.

    @iEason
    产品要加的.
    TanJunqiang
    TanJunqiang
    Aug 28, 2015❤️1
    19
    最底层一个 View
    左侧一个 View
    右侧一个 TableView
    TableView 中间自定义 Cell
    左侧一个 TextField
    右侧一个 Button
    Button 的 Hidden 、 Style 和监听根据图来设置就好
    TanJunqiang
    TanJunqiang
    Aug 28, 2015
    20
    NND 打的缩进全没了 LZ 凑合看吧
    painter
    painter
    Aug 28, 2015
    21
    @judi0713 我去 你逗死我了 哈哈哈!
    lk920724
    lk920724
    Aug 28, 2015
    22
    tableview 或者 scrollview 呀~
    jianzong
    jianzong
    Aug 28, 2015 via iPhone
    23
    FXForm ,你值得拥有
    judi0713
    judi0713
    Aug 29, 2015
    24
    @painter 题主说的啊看完无法理解啊
    bumaociyuan
    bumaociyuan
    Aug 29, 2015
    25
    FXForm+1
    tigerZhang
    tigerZhang
    Aug 31, 2015
    26
    FXForm 功能非常强大,但是会有一些上手成本。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 07:59 · PVG 15:59 · LAX 23:59 · JFK 02:59
    ♥ Do have faith in what you're doing.