coderLIfe coderLIfe - 1 month ago 7
iOS Question

uiview color black run time

i am new to ios . UIView color black automatic where preview is OK

i did not do any addintional feture .. just drag and drop

imageview
and
button
,
textbox
,
lable
,
view


and connect with
uitable
view by show
segue


enter image description here

controller code here :

class GetDirectionViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}


@IBAction func descriptionBtn(_ sender: AnyObject) {


}


}


segue information :

enter image description here

view hierarchical :

enter image description here

view :

enter image description here

Joe Joe
Answer

Try following step:

Select your view from storyboard and goto view property set background to white.

And

try shift+option+command +k clean your build .and rebuild

Output:

enter image description here

enter image description here