ios - change a property in another viewcontroller -


i've searched how run method viewcontroller on stackoverflow , didn't find answer. have viewcontroller1 playing audio using avaudioplayer , want viewcontroller2 able change it's volume.

i've tried basic: calling method in viewcontroller2 changes volume in viewcontroller1.
doesn't work. method able output logs isn't able change properties.

thanks

you need pass message viewcontroller2 viewcontroller1.
either use:
1. notifications
2. delegation

here link tutorial if unaware of both of them.
http://devinsheaven.com/cocoa-tutorial-passing-messages-between-objects-notifications-delegates-and-target-action/


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -