Implementing a form within a TableView

I would like to implement a form to insert data within a TableView in my app. I would like the form appears as a table, and each row of the table represent a TextField.

What is the right approach to do this?

Any help is appreciated!!

Regards, yassa

-------------Problems Reply------------

If I understood your question right then I would go for custom TableViewCells.

Subclass UITableViewCell. In the init method (initWithStyle, if I am not much mistaken) create the Text Fields and add them to the superview. ([self.view addSubView:myTextField])

In the layoutViewItems method you should arrange the TextField and any other custom view that you may want to create and add in init.

While overwriting both of them, do not forget to call the related superclass method at the very beginning. You may not need [super layoutSubviews] in the event that you do not want to use any of the standard elements of UITableViewCell.

If you are using Storyboard, use the new Static Cell TableView (as opposed to Dynamic Prototypes. This allows for a TableView that you don't have to use the delegate or datasource methods on. You can layout the sections and rows manually in IB. I use it lots for form based views.

Category:ios Views:0 Time:2012-03-17

Related post

  • SWT JFace: How to implement a "leveled or expandable TableViewer"? 2011-11-10

    I think this question is quite common. Recently I have got a requirement that I need to make a leveled or expandable table-like view. If you need an example, you can refer to Mac OS X's Activity Monitor: At the same time I tried an example here which

  • TableView no longer appearing when implementing sectionIndexTitlesForTableView 2010-11-18

    I have a TableView that displays the building names in alphabetical order of all of my map annotation objects. I wanted to divide them all up in to sections (each section being labeled A, B, C, D, etc), and put the section index feature on the side s

  • How can we implement pagecurl animation in tableview? 2011-11-24

    Ha ii every body ,how can we implement a page-curl in tableview,i have a tableview which contains pages of the book and i have implement the touch events in the tableview cell for next chapter and previous chapter,left-swipe for next and right-swipe

  • How to customize tableView Section View - iPhone 2009-08-28

    I know how to customize the tableViewCell. I have seen many application customizing the tableView Cell. Similarly, I want to customize TableView Section Header "Suppose - A section name should be in different font, It has different background images

  • Tableview not drilling down 2010-03-08

    Ok, Here is the code in my AppDelegate that loads the Schedule nib. Schedule *newestVideoController = [[Schedule alloc] initWithNibName:@"Schedule" bundle:nil]; newestVideoController.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"Schedule" image:

  • How does [self.tableView reloadData] know what data to reload? 2010-03-14

    It bugs me to death that my viewcontroller, which happens to be a tableViewController, knows without being told that its property that is an NSArray or an NSDictionary holds the data that is to be loaded into the table for display. Seems like I shoul

  • Why does the last row of my tableview not align to the bottom of the screen 2010-04-30

    I have a view which consists of a tableview and a navigation bar. For my tableview I have implemented a 'Load more' row which will load current + pagesize every time it is clicked The way the loading works is very simple, every time it is clicked I j

  • How to corectly implement - (NSIndexPath *)indexPathForSelectedRow when tryng to retrieve which table cell is selected 2010-07-01

    I have a delegate for my table view, and would like to be able to trigger an action when the user selects a cell in the tableview. How is the method - (NSIndexPath *)indexPathForSelectedRow correctly implemented? Thanks in advance. --------------Solu

  • Imitating UITableViewControllers behavior for tableView:willBeginEditingRowAtIndexPath: on UIViewController 2010-11-13

    In my app I needed to use a UIViewController to control my tableView instead of a UITableViewController (because I needed an additional view beneath my tableView). I've implemented the view controller (and delegate and datasource) succesfully but now

  • tableView inside detail view not getting called 2011-01-26

    I have a list view and a detail view. In the list view, I push a detail view using initWithNibName: While the details view is shown on screen, the grouped table inside this view is not getting displayed. It uses an IBOutlet and I have implemented - (

  • iPhone - How to center the section headers of a TableView 2011-02-02

    I want to center the header on the tableview, however I have 2 problems. First I don't have the correct height and second the UILabel doesn't look like the default header - font/font size/color etc... Is there a better way to center it, and/or is the

  • What method needs implemented to get an action from the UITableViewCell click / touch? 2011-02-08

    I'm new to the UITableView and noticed that w/out implementing a method the UITableViewCell simply turns blue when it's touched. What method would I need to add to get some action from this touch directly? For example, when the cell is clicked I want

  • TableView Row unable to Select 2011-03-04

    I defined my own controller with no nib file like this: @interface EngineViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> { EngineViewProperties* viewProp; UIImageView *imgView; // image view of selected engine NSU

  • why am I getting error "[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x4e38c50'"? 2011-03-21

    I made a TabBarApplication, and made 3 controllers, 1 of them is inheriting UITableViewController , I am putting number of sections are "return 1" and number of rows in section as "return 2", I am getting the following problem, why? [UIViewController

  • TableView not populating after first drilldown 2011-05-19

    I have a Sectioned Tableview sourced from a pList which i want to drill down into children sub views, my only problem is, im stuck on getting it to: 1. populate after first drill down (Entree is the only one with content), "Description" and "Title" A

  • tableView:cellForRowAtIndexPath: method question 2011-07-08

    First of all I beg your pardon but I am a newbie and trying to learn Objective-C. I was studying the UITableView when I found this method: tableView:cellForRowAtIndexPath: I read the reference for UITableView and some examples but I don't understand

  • Load More Option In TableView? 2011-08-04

    I need to implement Load More Option in tableView . I had received data from the web services in XML and i had parsed the XML files through the XML Api URLs and display the data in the UITableView. API URL is like:- http://www.xyz.com/api_tm.php?page

  • ScrollView below TableView 2011-08-05

    I need to implement a scrollView below a tableView (not inside, i know that apple not recommend to do that). Look at the picture (needed area is black rectangle) What you recommend to do ? Should i add scrollView like a subview to current view ? ----

  • Activity indicator in tableview 2011-08-10

    I have a tableview contains xml parsed objects. I want to implement activity indicator in this tableview ,if the data loading is completed activity indicator stops automatically. How to do this?. Thanks in advance --------------Solutions-------------

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.113 (s). 11 q(s)