Categories
iOS

UITableView update problem

It appears the UITableView cells created via storyboard is not updating correctly, say, if we want to add or delete a row. It only update once. The workaround in this case is creating the rows programmatically (instead of static tags from storyboard).

Similarly, I recall the JSF Richfaces paging problem when add/delete a row which results in the number of pages change.

I am guessing one possible cause of this type of problem is the update process runs into deadlock.

Categories
iOS

Another simple data grid example on iOS

I came across this example in Jan 2012 (almost 2 years ago :-). A lot has changed in iOS landscape, but the author did a good job designing the application, I think.
Displaying Tabular Data on iPhones (Tom Thompson, overview of UITableView)

Making Two-Way Tables in iOS

(a two dimensional table, with text field as input)

Categories
Uncategorized

How it all got started?

A few years ago, when I was a Java developer with a focus on JSF front end, one of my task is the paging of many pages of data, using Richfaces. Like many open source framework, Richfaces is a powerful tool, but it has its flaws (or limitations) if we don’t implement it carefully.

Here is one question I had at the time, and I answered by myself.

Of course, the real pain is when I tried to add and delete an entry (a row), and which causes the total number of pages to change, it just could not get the page number right 🙁

I have left the client since, but I have not got away with the data grid and data table. The very first iOS project I worked at my next employer involves mimic the Excel spreadsheet on iPad, the data grid is the center piece of all this because it will be used to input data, replacing the paper process. The other piece is to hook up with database (via web service) so that we eliminate the paper process completely.

Categories
iOS

The modified GMGridViewDemo

I added the 3rd tab has the excel like data table, the screen shot shown below. I can provide the source code if needed. Just email me at minjie dot xu AT gmail dot com

spreadsheet on iPad

Categories
iOS

Announcing iDataGrid ~ a place dedicated to data grid table on iOS

A little over a year ago, I started working full time as iOS developer for a mining company. One of the first projects is create spreadsheet like application on iPad. At that time there is no UICollectionView, and I found GMGridView to be interesting. I did look at an existing product called iOS Data Grid Table but there are two limitations which prevents me from using it: 1) It displays the values only (read only); 2) Perhaps more important, at that time I don’t recall it includes source code. So I ends up creating my own spreadsheet like tables based on GMGridView. I also read the nice work done by Tom Thompson. Of course that time my knowledge on UITextField (and UITableView for that matter) is not very good, and I did not understand all good work he did. I did used the UIPicker in my project, as it helps the user input data in many cases (simplify/ease input, reduce validation), I believe I borrow some idea from RayWenderlich’s tutorial too (UIPopupController and UIPicker).

A year and half later, when I took another look at this thing, I found at least four new things which are interesting, the shinobi controls (commerical), the MDSpeadView (looks like read only, github, open source), nucliOS (by Infragistics, commercial) and UICollectionView (Apple iOS native, tutorial by RayWenderlich.com)