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

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -