خرید بک لینک

Vote count: 0

I honestly can't understand what am i doing wrong.

I have this shared Instance of my UIViewController :

static let sharedInstance = UIStoryboard(name:"Main", bundle:nil).instantiateViewControllerWithIdentifier("IAPNEW") as! newIAPClass

If i'm presenting it, without accessing it outlets, as so :

 self.presentViewController(newIAPClass.sharedInstance, animated: true, completion: nil)

It's works as expected(show's up). BUT - if i'm trying to access his outlets, it's crashing with "found nil" error :

        newIAPClass.sharedInstance.lbl_full.text = "mMM"
        self.presentViewController(newIAPClass.sharedInstance, animated: true, completion: nil) 

Someone,Any idea why the outlets are nil?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 7 ارديبهشت 1395 ساعت: 5:56

صفحه بندی