You know you’re in the deep end when…
Anonymous asked: If, for example, I was making an app that used a table view and when you tapped a cell in the table view, you would drill down to a fairly long (3-4 pages) scrollable view, how should the data be stored? Should I use just store the text in a simple UITextView or should I use a more code-based, complex system of storing the data? I will not be using anything other than text and will have many (100+) views like this. Should I re-use the same view for all the cells or make a new one in IB for each?
Thanks so much,
Joe
So I’m guessing that you mean to push a text view containing a lot of text (or similar) each time a row is selected? In that case you could indeed re-use the text view, although I’m not certain of the relative merits of doing so. You would save the work of creating the view, but you’d not alleviate any of the burden of text rendering. If you find the application slow then look at caching the view itself, but otherwise assume it’s safe to create a new view each time you need to push one (Avoid Premature Optimisation).
In general I’d suggest to simply create a new text view (or its container via a controller/nib pair, etc) each time you want to push a new text view. The text itself would ideally be stored on disk somewhere and loaded on demand by the text view’s controller in -viewDidLoad, and could be released in -viewDidUnload.
Hopefully this answers your question— send some more details if I’ve missed any nuances about which you were concerned.
Once you catch the UX disease, life changes. Doors open the wrong way. Machines are ridiculous. Everything can be done better. — Cennydd Bowles, via Twitter (via nikf)
Anonymous asked: Hello, I understand that you're living in Canada, but you're from UK.
Just wondering, how did you ended up there?
Is it because of your own immigration effort, or you're employed by a Canadian software company?
I moved over here with a previous employer, who opened up a branch office in Toronto. I stayed here afterwards, working initially as a contractor although now working full-time for Kobo as the iPhone/iPad development lead.
Would U.S. troops obey presidential orders to deploy against the American people and take away our freedoms?
There is no doubt about it. Of course they would, especially if the president told them that our ‘freedom and national security’ depended on it, which he would.
—The Troops Don’t Defend Our Freedoms (via marco)
Or to put it more simply: that’s their job. This is the armed forces we’re talking about. You’re taught to follow orders, not to question them (and for good reason). If the morally-active soldiers you see in movies like Avatar were in the real army, they’d be out on their arses pretty quickly, because stopping to think about or question what you’re doing can genuinely get people killed. The chain of command exists so that the people up the top do the thinking.
[video]
In a civil procedure on a technical matter, it amounts to blackmail; the cost of defending one of these things is reckoned to be £10,000. You can get away with asking for £500 or £1,000 and be paid on most occasions without any effort having to be made to really establish guilt. It is straightforward legal blackmail. —
House of Lords: Record Companies have been harassing innocent users : DigitalWrong
Gawd bless the House of Lords sir. Gawd bless ‘em
Aside: This is why I’m heavily opposed to the House of Commons trying to abolish the House of Lords. The House of Lords doesn’t give purely political answers to things. They don’t have to obey the party whips.
shutup.css is a custom user stylesheet you can install in your web browser which will automatically hide the comments section of many popular web sites. My gift of a quieter, saner web to you.
I’ve added a little tweak to work for C|Net News.com on my copy:
/* C|Net */
.commentwrapper {
display: none !important;
}
Also, an alert to any Tumblr users whose themes include {TagsAsClasses}— you’ll need to make sure you don’t use ‘comment’ as a tag. I just did that here, and lo and behold my entire article was hidden from view. Doh.
Welcome to the Milky Way Transit Authority
Awesome map, but I hear their fares are astronomical.