xcode - Swift TableViewController is in Landscape -


i have tableviewcontroller when row tapped on goes url using kinwebbrowserviewcontroller. tableviewcontroller should in portrait kinwebbrowserviewcontroller can landscape or portrait. when go tableviewcontroller in landscape tableviewcontroller in landscape. how can stop this?

the code orientation:

class customnc: uinavigationcontroller {      override func supportedinterfaceorientations() -> int {         if visibleviewcontroller kinwebbrowserviewcontroller { return int(uiinterfaceorientationmask.all.rawvalue) }         return int(uiinterfaceorientationmask.portrait.rawvalue)} } 

the code didselectrowatindexpath:

override func tableview(tableview: uitableview, didselectrowatindexpath indexpath: nsindexpath) {      let linkitem = linklabels[indexpath.row] string      let webbrowser = kinwebbrowserviewcontroller()     let url = nsurl(string: linkitem)     webbrowser.actionbuttonhidden = true     webbrowser.loadurl(url)      self.navigationcontroller?.pushviewcontroller(webbrowser, animated: true) } 

any help?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -