Tuesday, 27 August 2013

how add subview to subview?

how add subview to subview?

I try to show in one view other, but it doesn't work
my views
General
@interface BaseViewController :
UIViewController<UIPopoverControllerDelegate, DatePickerDelegate,
AddScriptPopoverViewDelegate>
2nd
@interface MyViewController :
BaseViewController<UniversalViewNavigationDelegate, StarsSizeViewDelegate,
SelectPopoverViewDelegate, MyTableViewDelegate>
3rd
@interface MyViewNavigationController : UIViewController<UITabBarDelegate,
UISearchBarDelegate, MyTableViewDelegate>
in need to show my third view in second, but when i try in second, in
viewDidload
MyViewNavigationController *tableVC = [[MyViewNavigationController alloc]
initWithTableSize:CGSizeMake(380, 600)];
tableVC.delegate = self;
[self.view addSubview:tableVC];
last row saing me:
Incompatible pointer types sending 'MyViewNavigationController *__strong'
to parameter of type 'UIView *'
and crush
Help me please :)

No comments:

Post a Comment