You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/MNurdin/Documents/Github/iOS-8-Swift-Programming-Cookbook/chapter-multimedia/Playing Video Files/Playing Video Files/ViewController.swift:130:11: 'AnyObject.Protocol' does not have a member named 'FlexibleTopMargin'
In this ViewController file
override func viewDidLoad() {
super.viewDidLoad()
playButton = UIButton(type: .System)
if let button = playButton{
/* Add our button to the screen. Pressing this button
will start the video playback */
button.frame = CGRect(x: 0, y: 0, width: 70, height: 37)
button.center = view.center
button.autoresizingMask =
[.FlexibleTopMargin, .FlexibleLeftMargin, .FlexibleBottomMargin, .FlexibleRightMargin] //error message here
Please advice. Thank you.
The text was updated successfully, but these errors were encountered:
I got this error message
In this ViewController file
Please advice. Thank you.
The text was updated successfully, but these errors were encountered: