summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-12-23 22:41:50 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-12-23 22:52:05 -0800
commit19f2d77f02510fd14320166f45a33e6aa77cb396 (patch)
tree58faf4628aa9126578562691b4bff3b1fc39248e /MobileCydia.mm
parentf9257f618734672534a3955c16aa83acfa5e1786 (diff)
"Oh, my God... they killed parentViewController!"v1.1.3
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 58a380e..a011b9e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6209,8 +6209,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
CGRect kbframe = CGRectMake(round(center.x - bounds.size.width / 2.0), round(center.y - bounds.size.height / 2.0), bounds.size.width, bounds.size.height);
UIViewController *base = self;
- while ([base parentViewController] != nil)
- base = [base parentViewController];
+ while ([base parentOrPresentingViewController] != nil)
+ base = [base parentOrPresentingViewController];
CGRect viewframe = [[base view] convertRect:[list_ frame] fromView:[list_ superview]];
CGRect intersection = CGRectIntersection(viewframe, kbframe);