This file contains hidden or 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
var myView: MyView { | |
return view as! MyView | |
} |
This file contains hidden or 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
final class MyViewController: UIViewController { | |
override func loadView() { | |
let myView = MyView() | |
myView.delegate = self | |
view = myView | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
print(view) // Uma instância de 'MyView'! |
This file contains hidden or 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
final class MyViewController: UIViewController { | |
let myView = MyView() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupMyView() | |
} | |
private func setupMyView() { |
This file contains hidden or 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
final class MyViewController: UIViewController { | |
private let myButton: UIButton = { | |
// | |
}() | |
private let myView: UIView = { | |
// | |
}() | |
//Mais umas 10 views aqui... |
This file contains hidden or 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
# Bruno Rocha | |
# Add this file to your {SRCROOT}/bin, change ptProj to your desired locale | |
# and then add a Run Script at Xcode with this: | |
# ruby $SRCROOT/bin/AccountKitForceLocalization.rb | |
require 'find' | |
require 'uri' | |
require 'fileutils' | |
$scriptPath = File.dirname(__FILE__) |
NewerOlder