0
不行我添加按钮,通过这个代码查看:pushViewController在迅速3
btnMarkerInfo.setImage(imgInfo, for: .normal)
btnMarkerInfo.setTitleColor(UIColor.white, for: .normal)
btnMarkerInfo.frame = CGRect(x: w, y: UIScreen.main.bounds.height-70-56, width: 56, height: 56)
btnMarkerInfo.addTarget(self, action: #selector(vcMain.markerDidTap(_:)), for: .touchUpInside)
btnMarkerInfo.isHidden = true
btnMarkerInfo.alpha = 0
self.view.addSubview(btnMarkerInfo)
markerDidTap()是在这里:
func markerDidTap(_ sender: UIButton){
let vcPointTitles = storyboard?.instantiateViewController(withIdentifier: "vcPointTitles") as! vcPointTitles
vcPointTitles.pointId = sender.tag
self.navigationController?.pushViewController(vcPointTitles, animated: false)
}
时,这个按钮的功能markerDidTap
运行和vcPointTitles
必须的用户水龙头显示,功能执行但vcPointTitles不显示。 类和storyBoardId设置类似如下: vcPointTitles如下定义:
class vcPointTitles: UIViewController, UITableViewDelegate, UITableViewDataSource { .... }
我怎样才能解决这一问题?
为什么你把一个模块iAtlas? –