ios - 滑过带有 objective-c 的菜单
<p><div>
<aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
<div class="d-flex fd-column fw-nowrap">
<div class="d-flex fw-nowrap">
<div class="flex--item wmn0 fl1 lh-lg">
<div class="flex--item fl1 lh-lg">
<b>关闭</b>。这个问题需要更多 <a href="https://stackoverflow.com/help/closed-questions" rel="noreferrer noopener nofollow">focused</a> .它目前不接受答案。
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><pre><code>__block CGRect sideMenuFrame = self.sideMenuView.frame
sideMenuFrame.origin.x= - SIDE_MENU_WIDTH;
self.sideMenuView.frame = sideMenuFrame;
sideMenuFrame.origin.x= 0;
[UIView transitionWithView:self.sideMenuView duration:1.5f options:(UIViewAnimationOptionCurveEaseInOut) animations:^{
self.sideMenuView.frame = sideMenuFrame;
} completion:^(BOOL finished) {
}];
</code></pre>
<p>这将使 View 从左侧滑动到 View 。做反向动画关闭。</p></p>
<p style="font-size: 20px;">关于ios - 滑过带有 objective-c的菜单,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/32270249/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/32270249/
</a>
</p>
页:
[1]