ajouter le bouton pour afficher par ce code:pushViewController fonctionne pas dans rapide 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() est ici:
func markerDidTap(_ sender: UIButton){
let vcPointTitles = storyboard?.instantiateViewController(withIdentifier: "vcPointTitles") as! vcPointTitles
vcPointTitles.pointId = sender.tag
self.navigationController?.pushViewController(vcPointTitles, animated: false)
}
lorsque robinet d'utilisateur sur cette fonction bouton markerDidTap
run et vcPointTitles
doit Montrer, la fonction s'exécute mais vcPointTitles ne s'affiche pas. classe et storyBoardId Posé comme comme ci-dessous: vcPointTitles définissent comme suit:
class vcPointTitles: UIViewController, UITableViewDelegate, UITableViewDataSource { .... }
comment puis-je résoudre ce problème?
Pourquoi avez-vous mettre un iAtlas dans le module? –