Tasty UITableViews

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
brentj84062
Posts: 18
Joined: Wed Jul 12, 2006 4:40 am

Tasty UITableViews

Post by brentj84062 » Thu Jun 23, 2011 11:54 pm

I have a sample UITableViews stack I'd like to share with everyone. I was thinking about making it more comprehensive, but because it's so simple to implement tables in this way, I have decided to share the framework and let others experiment with going further.

UITableViews are the Data Grids of Cocoa programming. Unfortunately, UITableViews are not supported as an iOS object at this time. But, UIWebView is! And, thanks to some simple CSS/HTML, and a few LiveCode side tricks, it is possible to create a convincing UITableView without much effort.

The CSS project I picked is located at http://code.google.com/p/iphone-universal/. It's very lightweight and very, very easy to implement. The stack I've attached has the project's CSS file embedded and deploys it on preOpenStack to the apps Documents folder.

From there, the preOpenCard script generates a table of the states in the United States of America along with their capital cities. When you tap on a row, it takes you to another card which displays the name of the state and it's capital in two fields.

It's a simple demonstration of a very useful function. Feel free to provide feedback.

Brent Anderson
Attachments
Table Library.livecode.zip
The Stack
(199.59 KiB) Downloaded 335 times
iOS SimulatorScreenSnapz001.jpg
In action screenshot

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Tasty UITableViews

Post by jacque » Fri Jun 24, 2011 3:56 am

Thtat's pretty clever. Looks great.

I just downloaded his UiUIKit, it has all the right images in it too. Nice.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Tasty UITableViews

Post by Jellicle » Fri Jun 24, 2011 6:04 am

Here's my quick take on html scrollers...

http://forums.runrev.com/viewtopic.php? ... 043#p38382
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply