我有一个View,比如说DynamicView。我正在尝试使用不同的参数在导航器中推送相同的View(DynamicView)。this.props.navigator.push({component:DynamicView,params:{}//Differentparams})...exportdefaultconnect(mapStateToProps,mapDispatchToProps)(DynamicView)DynamicView与redux流程相连。但是我无法访问推送组件中的最新状态。我想知道,这样做是否正确?如果是,我如何访问与父级相同的推送组件中的最新状态。如果不是
我正在尝试获取屏幕上触摸的坐标,以显示弹出菜单如何在页面ViewController中使用我在这里做错了什么?overridefunctouchesBegan(touches:Set,withEventevent:UIEvent?){iflettouch=touches.first{letposition=touch.locationInView(view)print(position)}} 最佳答案 在PageViewController中,如果要弹出在viewDidLoad中:lettap=UITapGestureRecogni
我正在尝试获取屏幕上触摸的坐标,以显示弹出菜单如何在页面ViewController中使用我在这里做错了什么?overridefunctouchesBegan(touches:Set,withEventevent:UIEvent?){iflettouch=touches.first{letposition=touch.locationInView(view)print(position)}} 最佳答案 在PageViewController中,如果要弹出在viewDidLoad中:lettap=UITapGestureRecogni