martinjuhasz / MJPopupViewController

A UIViewController Category to display a ViewController as a popup with different transition effects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blank popover view is getting displayed

nandhakumarrbt opened this issue · comments

I haved added 4 files from the source directory and imported "UIViewController+MJPopupViewController.h",

and when i use the below code

UIViewController *popupView = [[UIViewController alloc] init];
SampleView *sampleView = [[SampleView alloc] init];
[[popupView view] addSubview:sampleView];
[self presentPopupViewController:popupView animationType:MJPopupViewAnimationFade];

I have created a seperate SampleView file, which is just UIView and not UIView Controller. When i run the code, it simply displays blank transparent popup but other animations seems to be working fine.

And i also tried the sample demo application, i was not able to change any uiview controls dynamically?

What am i doing wrong?