function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
victor92victor92 

Pass data back in view controllers

I`m not an expert in objective c programming, im doing a native app with the SDK for xcode, the problem is that i want to pass data back between view controllers.

I have an atributte in a child controller that i want to pass to another atributte in the parent controller, im using protocols and it supposed that my app will be working, but it doesnt.

Someone know if the SDK don`t allow this kind of things, or any idea?

Tom GersicTom Gersic

This is more of an Objective-C / iOS programming question than it is a Mobile SDK question, but typically what you would want to do is to create a public property on one of your view controllers and create a pointer to it in your other one.