Reputation: 17
my class is UIView, I cant change it to UIViewController because its being called by loadNibNamed within another class.
I know that presentModalViewController sends message to UIViewController, so how i can work on this issue within my UIView class?
This causes crash which is normal:
[self presentModalViewController ....
Tried this but the called view dosent get pulled:
.h
@class Setting;
@interface SettingProfile : UIView ...
Setting *setting;
@property (nonatomic, retain) Setting *setting;
.m
@synthesize setting;
...
[setting presentModalViewController ....
i tried this thread but it wasn't much help.
Upvotes: 0
Views: 1411
Reputation: 42522
You can't use presentModalViewController on a UIView, this just isn't going to work. You have a couple of options:
Seems like you aren't keen on the first option, so to do the second you will need to:
Upvotes: 2