http://www.techotopia.com/index.php/Using_Xcode_Storyboarding_(iPhone_iOS_5)
which I found by searching Google for "programmatically trigger segue". My previous search for "splitviewcontroller segue" was less helpful, turning up short, not really relevant StackOverflow posts.
I also skimmed the following tutorial, but wasn't able to pull the information I wanted fast enough:
http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2

Particularly after some not too disimilar trials and tribulations with Android fragments it makes me wonder if there isn't some way to make mobile development a little less hazardous ...
Of course having got that working there was still the unpleasantly convoluted issue of trying to make the test in a UITableViewCell wordwrap to keep me entertained:
http://stackoverflow.com/questions/2906090/how-to-make-text-in-a-uitableviewcell-wordwrap
http://stackoverflow.com/questions/494562/setting-custom-uitableviewcells-height
http://the-lost-beauty.blogspot.co.uk/2009/11/multi-line-uitableviewcell-using.html
I kind of hacked a solution there. It seems remarkable that there isn't a dynamic sizing solution that doesn't require hacking at code - maybe I just haven't found it yet.
I think I was also also tripped up by the detailTextLabel not being visible:
http://stackoverflow.com/questions/5190648/why-is-detailtextlabel-not-visible
All my attempts to set a nice background gradient for some elements in the table view failed :-( The top three StackOverflow hits for my google search on "CAGradientLayer UILabel" seemed promising, but I couldn't get it to work. I did however manage to get something to appear by creating a dummy transparent PNG of the right size and then was able to dynamically create a UILabel with a number on it.
No comments:
Post a Comment