If you look at my xCode Template project. Example 2. This will show you how to two way communicate.
Also on GitHub