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

Various compile errors with example #1

Closed
xgdgsc opened this issue Jun 24, 2015 · 5 comments
Closed

Various compile errors with example #1

xgdgsc opened this issue Jun 24, 2015 · 5 comments

Comments

@xgdgsc
Copy link

xgdgsc commented Jun 24, 2015

swift-badge-master/swift-badge/SwiftBadge.swift:15:12: Initializer does not override a designated initializer from its superclass

swift-badge-master/swift-badge/SwiftBadge.swift:16:5: Must call a designated initializer of the superclass 'UILabel'

swift-badge-master/swift-badge/ViewController.swift:50:12: 'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?

I' m using latest Xcode and swift.

@evgenyneu
Copy link
Owner

Hi, @xgdgsc, thanks for the feedback. I have updated the repository for Xcode 7 and Swift 2.0.

@xgdgsc
Copy link
Author

xgdgsc commented Jun 25, 2015

swift-badge-master/swift-badge/SwiftBadge.swift:32:47: Cannot assign to 'translatesAutoresizingMaskIntoConstraints' in 'self'

the previous setTranslatesAutoresizingMaskIntoConstraints(false) works.

@evgenyneu
Copy link
Owner

Oops, sorry @xgdgsc, I misunderstood you, I thought you were using swift 2.0 and Xcode 7 so I updated to it. It looks like you are using Xcode 6?

@xgdgsc
Copy link
Author

xgdgsc commented Jun 25, 2015

Yes, 6.

@evgenyneu
Copy link
Owner

Cool, I should have asked. I have created an xcode 6 branch for you. The only difference is that setTranslatesAutoresizingMaskIntoConstraints line that you mentioned. Thanks. 🌷

@xgdgsc xgdgsc closed this as completed Jun 26, 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