This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first enable "Refreshing" on controller via storyboard | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// the value for "action" must mach the function's name | |
refreshControl?.addTarget(self, action: "reloadStuff", forControlEvents: UIControlEvents.ValueChanged) | |
} | |
func reloadStuff() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tableView.estimatedRowHeight = 100 // estimated value for cell height | |
tableView.rowHeight = UITableViewAutomaticDimension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myImageView.layer.cornerRadius = 10.0f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myImageView.layer.borderWidth = 3.0f; | |
myImageView.layer.borderColor = [UIColor whiteColor].CGColor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myImageView.layer.cornerRadius = myImageView.frame.size.width / 2; | |
myImageView.clipsToBounds = YES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "minitest/reporters" | |
Minitest::Reporters.use! |
NewerOlder