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

Init method can not be converted correctly from Objective-C to Swift. #2

Closed
MsrButterfly opened this issue Aug 15, 2014 · 5 comments
Closed

Comments

@MsrButterfly
Copy link

Following is my tricky solution:

define initFlat initWithFlat

define initFlatWithFrame initWithFlatWithFrame

define initRaised initWithRaised

define initRaisedWithFrame initWithRaisedWithFrame

Please fix it, thanks. I really like your works.

@MsrButterfly MsrButterfly changed the title Init method can not be converted correctly. Init method can not be converted correctly for Objective-C to Swift. Aug 15, 2014
@MsrButterfly MsrButterfly changed the title Init method can not be converted correctly for Objective-C to Swift. Init method can not be converted correctly from Objective-C to Swift. Aug 15, 2014
@harlanhaskins
Copy link

Probably would be best to just have raised:(BOOL)raised as a parameter, like initWithFrame:raised:

@bfeher
Copy link
Owner

bfeher commented Aug 18, 2014

Working on this now. I'll release this fix along with a few more soon.

@bfeher
Copy link
Owner

bfeher commented Aug 18, 2014

I took @harlanhaskins advice and just made it a parameter. However I'm trying to squash a few more bugs and do one large update, so sorry about the wait. Thanks @Msr-B for point this out, and thanks @harlanhaskins for the best solution.

@MsrButterfly
Copy link
Author

^_^ Thanks.

@bfeher
Copy link
Owner

bfeher commented Aug 20, 2014

Version 1.3.2 has the new initializers. Old ones still work but are marked as deprecated. Please let me know if this didn't solve your issues. Thanks.

@bfeher bfeher closed this as completed Aug 20, 2014
abackys added a commit to abackys/BFPaperButton that referenced this issue Apr 18, 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

3 participants