2015年3月12日 星期四

iOS Container view與Parent UIViewController的溝通



若parent裡要呼叫container裡面的屬性




self.ChildViewController.yourProperty = yourValue




若container要呼叫parent的屬性:




((YourParentViewControllerClassType *)self.parentViewController).yourParentProperty = TheValueYouWant;

沒有留言: