ios - How do I access a variable in the viewcontroller from within a custom view? -


i have viewcontroller variable called conversationid. in viewcontroller have custom view it's own class. how can access userid variable within custom view class?

try this: 1. set customviews customclass in storyboard. 2. make outlet custom view 3. can access userid using.. yourviewcontroller.custonview.userid


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

loops - Spock: How to use test data with @Stepwise -