问题标签 [ecslidingviewcontroller]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios7 - 在新的 ECSlidingViewController 2 上打开 BasicMenu.xcodeproj 失败
是否可以在新版本的 ECSlidingViewController 上打开 xcode 上的 BasicMenu.xcodeproj 而无需通过 Examples.xcworkspace 进行操作?我正在尝试专门研究 BasicMenu 示例,当我这样做时,我收到此错误:
ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
ios - 带有 UITabBarController 的 ECSlidingViewController
我有一个需要滑动视图的要求,但那是在 UITabBarController 中。
有没有人试过这样做?如果我将它设置为 rootViewController,ECSlidingViewController 可以完美运行,但我希望在 UITabBarController 中使用它。
我尝试将 ECSlidingViewController 设置为 UITabBarController 的视图控制器之一,但在第一次滑动后它会一直崩溃,或者有时它会进入无限循环
下面是我的代码
//SlidingviewController 设置 self.slidingViewController = [ECSlidingViewController slipWithTopViewController:myWorkNavController];
我在myWorkController 中设置underRightViewController
1)第一次滑动完美,但第二次滑动在 ECSlidingViewController 代码中中断 2)当我使用 UINavigationController 时,当我尝试更改 underRightViewController 时,它在 [oldUnderRightViewController removeFromParentViewController] 处失败;ECSlidingViewController 代码
有人可以指导我做错了什么吗,或者如果这可能与 ECSlidingViewController
提前致谢
ios - ECSlidingViewController freezes UIRefreshControl
I'm using ECSlidingViewController in my app. I have a View Controller with a UITableView in it, which uses a UIRefreshControl to execute a long task. When I pull down to refresh, the refresh control starts animating normally but when I go to the top view controller (my main menu in this case) and then go back to my view controller, the refreshControl freezes completely until the task is completed.
To make it clearer, these are the steps I follow:
- Pull down my tableView to refresh it.
A long task is executed on background, like:
/li>While the refresh control is animating, I slide (I don't call the
resetTopView:animated:
method or any of those ones, I just make a pan gesture) my current view controller to the right to show my Main Menu. When this happens, the refresh control suddenly stops animating (it freezes).I go back to the view controller I was using at first but it remains frozen.
The task completes and the refresh control ends the refresh naturally, removing itself from my tableView with a nice animation.
Any idea why this happens?
ios - 使用 ECSlidingViewController 在两个 NavigationController 之间转换
我正在尝试完成这样的事情:
我的设置是这样的:
我有一个以 SlidingViewController 作为 RootViewController 的故事板设置。左侧面板充当导航菜单。从此菜单中,我对不同的 NavigationControllers 进行了 Segues
我想做的事:
我想在不“丢失”侧面板的情况下在不同的 NavigationController 之间进行转换。例如:用户想要将产品添加到购物车,但未登录 - 它应该将他们带到“帐户创建”-导航控制器。
我现在是怎么做的:
这行得通,有点。它改变了顶部导航控制器——但它是瞬间完成的。有没有办法让我制作动画(就像它可用于 Segues?)
谢谢!
ios - Obj-C: Swipe to delete locking app
I'm having an issue with swipe to delete in UITableViews when using ECSlidingViewController.
I have a very simple example here: https://github.com/RichardSimko/ECSlidingViewControllerTest
The problem arises when you swipe to delete on the table cells, if you then try to open the menu using the menu button, which calls the method [self.slidingViewController anchorTopViewToRightAnimated:YES];
, the app will lock up. However, if you use the swipe gesture to trigger the menu it won't.
As I'm not that familiar with animations and the likes I was wondering if anyone have any ideas as to what I can do to fix the issue in ECSlidingViewController. Or am I perhaps using it in the wrong way?
ios - 支持多个iOS版本
我在我的应用程序中使用了一个名为 ECSlidingViewController 的库。然而,这个库有两个不同的版本,一个用于 iOS 7,一个用于旧版本。
由于不同的版本使用相同的方法签名但在不同的文件中定义,因此检查当前版本UIDevice
并不是一个真正的选择,因为这不允许我导入正确的版本。据我了解,iOS 应用程序不是按版本编译的,而是作为通用二进制文件编译的。
那么我该如何解决呢?以前一定有人遇到过这个问题。
ios - ECSlidingViewController2 可以与左右栏按钮一起使用吗?
有谁知道 ECSlidingViewController2 是否可以同时与左右 UIBarButtonItem 一起使用?每个示例仅显示导航栏左侧使用的单个按钮。
https://github.com/ECSlidingViewController/ECSlidingViewController
提前致谢!
编辑:
为了将来参考,现在可以在以下位置找到显示 ECSlidingViewController2 同时使用左右 UIBarButtonItem 的示例:
https://github.com/ECSlidingViewController/ECSlidingViewController/tree/master/Examples/LayoutDemo
ios - 从 topViewController 显示模式视图控制器时,ECSlidingViewController 崩溃
XCode 5,iOS7
项目,使用Storyboard
,但主要用于定义流程,不是UI
由它创建的。
我有这种情况(抱歉没有截图,但情节提要实际上相当大):
我已经设置ECSlidingViewController
好了。它的初始VC
( 的子类ECSlidingViewController
)是rootVC
,在他里面我定义了 underViewController
和 top ViewController
。
我有UITableVC
嵌入UINavigationVC
作为underLeftViewController。作为我的 topViewController,我有UITabbarVC
三个选项卡。每一个childVC
都有Tabbar
自己的navigationBar
一个按钮,可以打开侧面菜单(在LeftViewController 下)。
在我的一个标签中,我UITableVC
嵌入了UINavigationVC
. 让我们称之为Screen1。
当按下某行时,我推送PSCollectionView
(带有可自定义单元格的 collectionView)。显示图像缩略图的网格。让我们称之为Screen2。
当按下某些图像时,我会推送全屏图像。这个是Screen3。
有一个按钮,当按下它时,它会显示一个modalVC
嵌入UINavigationVC
其中的图像细节。
现在,当我解雇modalVC
我时,我又回到了Screen3上。然后我按下并从Screen3成功返回到Screen2,但是当我再次按下以导航到Screen1(tabbarVC
侧面菜单按钮所在的第一个选项卡)时,应用程序因以下错误而崩溃:
我找不到实际发生的事情。我什至没有尝试到达 UnderViewController (即使我想要我不能 - 没有按钮来显示它)。在互联网上搜索了一些解决方案,但没有。好像我是唯一一个有这个问题的人,所以我一定做错了什么。
顺便提一下,在 underLeftViewController 中,当我从不同部分选择行时modalVC
,当我关闭它时,应用程序仍然可以正常运行。只有在这种情况下才会出现问题。
欢迎任何提示,建议。
ios - 关闭 ECSlidingViewController 菜单
我想以按下菜单按钮将显示我的菜单并再次按下菜单将隐藏它的方式实现我的滑动菜单。但我不明白如何使用 ECSlidingViewController 来做到这一点。将不胜感激任何帮助。
ios - ECSlidingViewController - How do you know when the menu has been shown?
I am integrating [ECSlidingViewController]
, which I found on github, in my app and I want to know if there is a property which tells me if the menu has been shown or not. I will be using this to control the functionality of the menu button, as a toggle to hide and show the menu. Is there any such property?