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

How to connect storyboard and class code? #395

Closed
XOneto9 opened this issue Jan 27, 2017 · 5 comments
Closed

How to connect storyboard and class code? #395

XOneto9 opened this issue Jan 27, 2017 · 5 comments

Comments

@XOneto9
Copy link

XOneto9 commented Jan 27, 2017

How can I connect storyboard and programmatically code class?
Now, If I want to use this IBAnimatbale module, then I should change the name of Class and modules in storyboard.
But, If I do that. I don't know how can I connect code?

ex) storyboard tableview using name is 'AnimatableTableView' but, code class name is 'Aview'
How can I connect?

@gkye
Copy link
Member

gkye commented Jan 27, 2017

Based on the example given it sounds like you need to connect your code and storyboard using IBOutlets.

  • You can create an instance of AnimatableTableView in storyboard within your ViewController
    capture

  • Assign your ViewController to the class you wish to use. In this class you can create @IBOutlets which you can connect later.

import UIKit
import IBAnimatable

class AView: UIViewController{
  @IBOutlet var myTableView: AnimatableTableView!  
}

capture

  • Lastly you can connect your AnimatableTableView to the @IBOutlet created in AView by going to the Connections Inspector and connecting the tableView in storyboard to the @IBOutlet created in your code.
    capture

@XOneto9
Copy link
Author

XOneto9 commented Jan 27, 2017

@gkye wow, Thanks!!
I hadn't known like this to connect ways. thanks I learn new way how to connect!
also, Rapidly reply to me
thanks! all of

// additionally, is not exist UICollectionViewController of Animatable module?

@tbaranes
Copy link
Member

Sadly, we currently have no AnimatableCollectionView. We are tracking this in #53, it will come one day 🙃

@XOneto9
Copy link
Author

XOneto9 commented Jan 27, 2017

@tbaranes It so sad T^T
Thank you so much to rapidly answer to me!
Thanks

@XOneto9 XOneto9 closed this as completed Jan 27, 2017
@XOneto9
Copy link
Author

XOneto9 commented Jan 27, 2017

Sorry, Lastly!!!
could you please tell me about TableviewCell class connecting with storyboard??
if I create UITableViewCell class :):)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants