Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
7390ad10
Commit
7390ad10
authored
Feb 02, 2016
by
David Muzi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when presenting product view controller from tabbar
parent
0f998783
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
BUYProductViewController.m
...DK/Mobile Buy SDK/Product View/BUYProductViewController.m
+2
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Product View/BUYProductViewController.m
View file @
7390ad10
...
@@ -444,12 +444,13 @@ CGFloat const BUYMaxProductViewHeight = 640.0;
...
@@ -444,12 +444,13 @@ CGFloat const BUYMaxProductViewHeight = 640.0;
[
self
.
productView
.
productViewHeader
.
productViewHeaderOverlay
scrollViewDidScroll
:
scrollView
withNavigationBarHeight
:
CGRectGetHeight
(
self
.
navigationBar
.
bounds
)];
[
self
.
productView
.
productViewHeader
.
productViewHeaderOverlay
scrollViewDidScroll
:
scrollView
withNavigationBarHeight
:
CGRectGetHeight
(
self
.
navigationBar
.
bounds
)];
}
}
}
else
if
(
self
.
productView
.
productViewHeader
==
nil
&&
self
.
navigationBar
&&
self
.
navigationBar
.
alpha
==
0
)
{
}
else
if
(
self
.
productView
.
productViewHeader
==
nil
&&
self
.
navigationBar
&&
self
.
navigationBar
.
alpha
==
0
)
{
// If the product view does not contain an image, inset the productView so its not obstructed with the navigation bar
[(
BUYNavigationController
*
)
self
.
navigationController
updateCloseButtonImageWithTintColor
:
YES
duration
:
0
];
[(
BUYNavigationController
*
)
self
.
navigationController
updateCloseButtonImageWithTintColor
:
YES
duration
:
0
];
self
.
navigationBar
.
alpha
=
1
;
self
.
navigationBar
.
alpha
=
1
;
self
.
navigationBarTitle
.
alpha
=
1
;
self
.
navigationBarTitle
.
alpha
=
1
;
CGFloat
topInset
=
0
;
CGFloat
topInset
=
0
;
if
(
self
.
presentingViewController
)
{
if
(
self
.
presentingViewController
)
{
topInset
=
CGRectGetHeight
(
[[(
UINavigationController
*
)
self
.
presentingViewController
navigationBar
]
bounds
]
)
+
self
.
presentingViewController
.
topLayoutGuide
.
length
;
topInset
=
CGRectGetHeight
(
self
.
navigationController
.
navigationBar
.
bounds
)
+
self
.
presentingViewController
.
topLayoutGuide
.
length
;
}
}
[
self
.
productView
setInsets
:
UIEdgeInsetsMake
(
topInset
,
0
,
0
,
0
)
appendToCurrentInset
:
YES
];
[
self
.
productView
setInsets
:
UIEdgeInsetsMake
(
topInset
,
0
,
0
,
0
)
appendToCurrentInset
:
YES
];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment