Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'AnyObject.Protocol' does not have a member named 'FlexibleTopMargin' #17

Closed
datomnurdin opened this issue Jul 2, 2015 · 1 comment
Closed

Comments

@datomnurdin
Copy link

I got this error message

/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.

@vandadnp
Copy link
Owner

vandadnp commented Jul 2, 2015

Similar to your other issue, the HEAD of the master branch is for Xcode 7 Beta 2 Swift 2.0, so you need to check the old release out.

@vandadnp vandadnp closed this as completed Jul 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants