skip to Main Content

Value of type 'UIView?' has no member 'titleLabel' – Ios swift

I am trying to specify custom font for admob native ads CTA button. But I'm getting this error. Value of type 'UIView?' has no member 'titleLabel' ListTileNativeAdFactory: class ListTileNativeAdFactory : FLTNativeAdFactory { ... ... (nativeAdView.callToActionView as? UIButton)?.setTitle(nativeAd.callToAction, for: .normal) nativeAdView.callToActionView.titleLabel.font…

VIEW QUESTION
Back To Top
Search