Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import UIKit
  2. import PassKit
  3.  
  4. class ViewController: UIViewController {
  5.  
  6. @IBOutlet weak var button: UIButton!
  7.  
  8. override func viewDidLoad() {
  9. super.viewDidLoad()
  10.  
  11. let pkButton = PKAddPassButton()
  12. view.addSubview(pkButton)
  13. pkButton.frame = button.frame
  14. button.isHidden = true
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement