Open GoogleCodeExporter opened 9 years ago
I am having the same issue. Was there any resolution?
Original comment by AnthonyS...@gmail.com
on 11 Jan 2013 at 3:43
Same issue ! Any solutions ?
Original comment by fjmerch...@gmail.com
on 9 Apr 2013 at 2:23
Yes I have the same issue. I faced it around 20 days, but not get any solution.
but finally i solved it. I have also given dairy milk to my friends , bcoz i
was very happy.
Why exactly is happen.
1) I use storyboard
2) I assign my viewcontroller view to PLView. I have attached screen shot.
3) In my .h file i declare
PLView *plView;
4) In my .m file
plView = (PLView *)self.view;
plView.delegate = self;
I declare this code in viewDidLoad() method.
(This is the actual cause of the problem , Dont do this)
Reason: because when u create this in viewdidload , the view is not properly
loaded, thats why it show failed to create.
Best way is to create in viewwillappear.
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
if (!alreadyCreated)
{
//create plview
plView = (PLView *)self.view;
plView.delegate = self;
//refresh the layout at starting.
[plView layoutSubviews];
alreadyCreated = YES;
}
}
Remember viewwillapper can be called multiple time , but u want to create
plview only once . i manage by creating a BOOL variable. so initially its false
. and next time true. means this code will executed once.
I solved the issue and i am very happy.
Original comment by dr.amolj...@gmail.com
on 11 Aug 2014 at 7:10
Attachments:
Original issue reported on code.google.com by
zak.b...@gmail.com
on 24 Oct 2012 at 6:15