I have created a custom cell with buttons.
the buttons should present a modalViewController, one for the email and another for a webView.
I have also created a delegate to get a callback from the class.
so in the cell class:
_delegateAction = [[HistoryVC alloc] init];
_delegateAction.delegate = self;
[_delegateAction openData:_data Type:_title.text]; //start process
The class that the table is on is a UIviewController that have a table view. the (with the custome cells that are another class inherit from UiTableViewCell.
if you need meed information just tell me.
in the UIviewController I am trying to present a modal view as follow:
-(void) openData: (NSString *)data Type:(NSString*)type
{
QRWebView * webView = [[QRWebView alloc] init];
webView.url = data;
[self presentModalViewController: webView animated:YES];
}
The modalview doesn’t show. I know that I’m doing something wrong, but what is it?
Thanks in advance.
I have managed to fix it by implementing the PresentModalView.
What I did is to create a showModal and DismissModal in the AppDelegate class.
Those method add to the Window the view I wanted by adding it as:
and for the Dismiss is removeFromSuperview.
I implemented an animation to fake the modalView animation.
to get to those methods I have used the shareApplication.
and it’s works.