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

Could not find member 'subscript' #2

Open
datomnurdin opened this issue Mar 26, 2015 · 2 comments
Open

Could not find member 'subscript' #2

datomnurdin opened this issue Mar 26, 2015 · 2 comments

Comments

@datomnurdin
Copy link
Contributor

I got this error message in Home.swift

override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(Bool())

        let scale = CGAffineTransformMakeScale(0.5, 0.5)
        let translate = CGAffineTransformMakeTranslation(0, -200)
        dialogView.transform = CGAffineTransformConcat(scale, translate)

        spring(0.5) {
            let scale = CGAffineTransformMakeScale(1, 1)
            let translate = CGAffineTransformMakeTranslation(0, 0)
            self.dialogView.transform = CGAffineTransformConcat(scale, translate)
        }

        avatarImageView.image = UIImage(named: data[number]["avatar"]!)
        imageButton.setImage(UIImage(named: data[number]["image"!]), forState: UIControlState.Normal) //error message here
        backgroundImageView.image = UIImage(named: data[number]["image"]!)
        authorLabel.text = data[number]["author"]
        titleLabel.text = data[number]["title"]

        dialogView.alpha = 1
    }
@loop
Copy link
Owner

loop commented Mar 26, 2015

This might be due to the fact that this app was built when Swift was still in developer mode. Some API functionality might have changed. I will have a look at this soon.

@datomnurdin
Copy link
Contributor Author

TQVM. Let me know sir.

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