Using a table view for entering data - objective-c

With the regular table view touching a table cell will switch to another view. I have seen some applications that are using something that looks similar to a table view except touching a cell brings up the keyboard so that text can be entered into the cell. It looks kind of like a table view, but a little different. What are they using to make these tables?

It's a table view all right. The cells contain UITextFields or UITextViews, usually of the borderless variant to make them fade into the surrounding cell.

Related

Nice and easy way to move Table View Cells onto one single row under a section in a UITableViewController?

What would be the best way to make all the Table View Cells under a Table View section be on one row as if they were grid squares? I want to still use UITableView but just make the cells single square blocks that together fill up an entire row. (It would be similar to a Collection View except I want to use a UITableView to accomplish this).
Thanks in advance.
UITableView is single column and linear. You can't do what you're describing with it. That's the purpose of the UICollectionView; it's not limited in the format of the cells.

How do I implement an iOS table view with letters on the side to navigate?

I want a table like the middle one in the image below:
I have a table ready with sections, and I want to achieve what this one in the middle has: small A-B letters where you could scroll and click for particular result.
How is that done? Do I need to select particular type of table or cell?
No, this is just a standard UITableView. You need to implement the sectionIndexTitlesForTableView callback in it's datasource.

NSTableColumn animation

I want to make a table view with dynamic columns.
Similar to the one in Ecoute
I just need one column to be visible at a time. As soon as it is double clicked, the whole table view (not scroll view) should animate to the left, and the new column should appear.
I have no idea how to implement it.
Has anyone an idea?
Just added a new NavigationViewController which handles multiple TableViewControllers which handle a table view. The NavigationViewController then animates between them.
It's actually pretty simple if you have the idea.

Table view inside a table view

In my app i am having a table view in which i am having buttons in which images are shown .Now what i want is that when i click on any image(button).then another table view has to be shown inside the first table view.Then i need to click on the images present in the second table view .How can i achieve that .Is it possible to create a table view inside other table view or i is there any other solution like creating a view and then adding images inside it.Please help.Any help will be appreciated.
Thanks,
Christy
It's definitely possible, but Apple advises not putting a UITableView inside another UITableView (it makes touch tracking and behavior significantly more complex).
The best solution depends on your exact situation, but if the sub-view contains a lot of data, you can move it off into it's own modal view, or you can create a static or semi-static view that is embedded inside your UITableViewCell when that cell is selected.

Cocoa one row table view or a horizontal list view

Is it posible to use table view to show just one row of a big amount of elements? What I'm looking for is for some kind of horizontal list, like we have in XCode preferences or Aperture image list.
It would behave just like a one columnt table view, but instead of showing the elements vertically, it should be horizontally.
Can you point me to where should I start from?
If you're okay with Leopard-only, The new NSCollectionView supports horizontal display. Just set the collection view's number of rows to 1 in Interface Builder; it'll even handle the horizontal scroll bar for you. The IconCollection sample code provides a simple demonstration of how it works. It's bindings work similarly to a table view's, except instead of rows and columns, each object represented gets an 'item' (an object of type NSCollectionViewItem) that displays it, and those items will be laid out in a grid. The sample code above demonstrates how to set up these 'items' in Interface Builder, which is definitely the easiest way.
With a table view? No. If I'm understanding correctly what you want, in the past I've created my own NSView subclass for this type of control. Define a data source protocol similar to NSTableView, and in your NSView drawRect method, draw the elements in order one by one from left to right. You can either keep track of paging in your control, or put it in a scroll view and resize yourself whenever the number of items changes.
Usually this type of thing starts off pretty simple, and gets a bit complex once you start handling caching, paging, selection, mouse and keyboard input and so on. My advice, start as simple as possible and add new features one by one, only after you've finished the previous task.