Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift set view z order front

//https://stackoverflow.com/a/4631895/13171606
//in controller class
var myView = UIView()

override func viewDidLoad() {
        super.viewDidLoad()
  myView.layer.zPosition = 1 //this line will order view on front
}

//if you get any error using "zPosition" then import following 
//swift
import QuartzCore
//Or for obj c
#import QuartzCore.h is for obj c
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #set #view #order #front
ADD COMMENT
Topic
Name
4+4 =