Elvison
Elvison
有时候 viewDidAppear 进入页面需要选中一个index不是0 的item,目前调用方法selectItemAt 默认有滚动动画,能否增加参数支持动画选项?方法类似 这样写 func selectItemAt(index: Int, animated: Bool = true),是否需要选中动画由用户使用场景决定。
@pujiaxin33 , defatulSelectedIndex 应该只能在初始化的过程中使用吧?例如当前controller A有一个JXSegmentedView,之后push一个controller B,回到controller A的时候需要把JXSegmentedView 选中第三个item,且不需要动画,这种情况用defatulSelectedIndex 是实现不了的。
你可以尝试替换: + (UIWindow *)appWindow { return [UIApplication sharedApplication].windows[0]; } 为 : + (UIWindow *)appWindow { return [UIApplication sharedApplication].delegate.window; }
我试了操作innerView,但是好像没有效果,有人知道如何使它横屏吗?
你可以尝试替换: + (UIWindow *)appWindow { return [UIApplication sharedApplication].windows[0]; } 为 : + (UIWindow *)appWindow { return [UIApplication sharedApplication].delegate.window; }