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.