ios - Only half the screen visible when using PFLoginViewController -
i trying use pfloginviewcontroller show login , sign screen. see ok can see half screen.
below code , see on simulator. can't figure out what's wrong. logo.jpg? (logo.jpg dimensions 916x916)
code:
class if want copy , make mods: import uikit
class loginsignupviewcontroller: pfloginviewcontroller, pfloginviewcontrollerdelegate, pfsignupviewcontrollerdelegate { override func viewdidload() { super.viewdidload() self.delegate = self self.signupcontroller?.delegate = self self.loginview?.logo = uiimageview(image: uiimage(named: "logo.jpg")) self.signupcontroller?.signupview?.logo = uiimageview(image: uiimage(named: "logo.jpg")) } func signupviewcontroller(signupcontroller: pfsignupviewcontroller, didsignupuser user: pfuser) { signupcontroller.dismissviewcontrolleranimated(true, completion: nil) } override func didreceivememorywarning() { super.didreceivememorywarning() } }
finally, here screen: seems username , password textfields hidden , half login button displayed.
hate answer own question tinkering found problem, logo dimensions using high.
Comments
Post a Comment