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

javascript - How do you prevent nested queries/catches in sequelize? -

ruby on rails - ActiveRecord order not working -

java - ConcurrentModificationException upon committing transaction with Hibernate -