[ad_1]
I’m making an attempt to succeed in ViewController’s dimension from one other Swift File. I attempted this however it could not succeed, sadly.
import Basis
import UIKit
class Buttons {
let myButton = UIButton()
init(image: String){
let storyboard = UIStoryboard(title: "Fundamental", bundle: nil)
let controller = storyboard.instantiateViewController(identifier: "ViewController")
myButton.setTitle(image, for: UIControl.State.regular)
}
}
With this UIStoryboard(title:, bundle:), I took this error:
Thread 1: EXC_BAD_ACCESS (code=2, tackle=0x16f367ff0)
Okay, from one other ViewController, reaching different one’s dimension is feasible however on this scenario I could not resolve the difficulty.
Do you have got any concepts about it?
Thanks.
Observe: My predominant objective is to put buttons correctly out of my ViewController file.
[ad_2]
