零基础自学iOS开发中,遇到一个难题不知道怎么解决,想来V2EX求教
我有一个UIViewController(VC.h VC.m)在这个Controller中,我期望可以混合UIImage,UIText 和一个 Static Cells 的 Table View。因为 Static Cells 的 Table View 只能存在于 TableViewController 中,我在UIViewController里放了一个 Container View,这个 Container View 连接了一个 UITableViewController(TVC.h TVC.m)。
在我的VC.h 中我声明了一个
@property (nonatomic, strong) CHJItem *item;
我希望在我的 TVC.m 中使用这个item,比如 self.presentingViewController.item.title 这样。
可是,Xcode 提示我 Property 'item' not found on object of type 'UIViewController *'
不知道这是为什么?如何解决这个问题?
我有一个UIViewController(VC.h VC.m)在这个Controller中,我期望可以混合UIImage,UIText 和一个 Static Cells 的 Table View。因为 Static Cells 的 Table View 只能存在于 TableViewController 中,我在UIViewController里放了一个 Container View,这个 Container View 连接了一个 UITableViewController(TVC.h TVC.m)。
在我的VC.h 中我声明了一个
@property (nonatomic, strong) CHJItem *item;
我希望在我的 TVC.m 中使用这个item,比如 self.presentingViewController.item.title 这样。
可是,Xcode 提示我 Property 'item' not found on object of type 'UIViewController *'
不知道这是为什么?如何解决这个问题?