Swift Moth

Jack Chen S Y

7 posts
Page 1 of 2 Older Posts →

CSS Layout #1 - Multiple columns layout

This is the first episode as the workshop summary from Webconf Asia 2018. Being through Blueprint CSS, Twitter Bootstrap and a few other frameworks, what're the »

Jack Chen S Y 10 June 2018

Server side integrates Google Analytics API with Ruby

Upgrading google-api-ruby-client from 0.8.x to 0.9 will probably break a lot of your code. Officially, there is a migration guide, but it does »

Jack Chen S Y 08 April 2016

Compare class & struct when using didSet/willSet

didSet and willSet are a pair of stored property observers for class or struct. How about the stored property itself is a class or struct? Does »

Jack Chen S Y on swift-2.1, class vs struct, didSet/willSet 21 December 2015

Calculate height of multi-line UILabel

func heightForLabel(#fontSize: CGFloat, labelWidth: CGFloat) -> CGFloat { let label:UILabel = UILabel(frame: CGRectMake(0, 0, labelWidth, CGFloat.max)) label.numberOfLines = 0 label.lineBreakMode = NSLineBreakMode. »

Jack Chen S Y on UI, swift-1.2, UILabel 03 July 2015

Learn swift casting from examples

The first thing boring swift beginners is the weird ? and ! marks in different positions. Sometimes they follow as and followed by a class name such as »

Jack Chen S Y on Casting, Optional, swift-1.2 01 June 2015
Page 1 of 2 Older Posts →
Swift Moth © 2021
Proudly published with Ghost