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 -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -