Button not shown on Device but working fine on Simulator
Hi Pepibumur, I'm having a strange issue with PPiAwesomeButton library, everything works fine when I run the app on the Simulator, but the buttons son't show up when I run the app on my iPhone 6.
Any idea?
Thanks Emilio
Is there any log information in the XCode debugger @middiu ?
No nothing, no error messages, no warning... nothgin.... this is the pice of cose:
self.addFavourites = [UIButton buttonWithType:UIButtonTypeCustom text:@"Pin it!" icon:@"icon-pinterest" textAttributes:@{ NSFontAttributeName:[UIFont systemFontOfSize:32], NSForegroundColorAttributeName:[UIColor whiteColor], @"IconFont":[UIFont fontWithName:@"fontawesome" size:20] } andIconPosition:IconPositionLeft]; [self.addFavourites setIsAwesome:YES];
[self.addFavourites setBackgroundColor:[UIColor colorWithRed:27.0f / 255 green:178.0f / 255 blue:233.0f / 255 alpha:1.0] forUIControlState:UIControlStateHighlighted]; [self.addFavourites setBackgroundColor:[UIColor colorWithRed:60.0f / 255 green:89.0f / 255 blue:157.0f / 255 alpha:1.0] forUIControlState:UIControlStateNormal]; [self.addFavourites setRadius:5.0]; self.addFavourites.frame = CGRectMake(10, 5, 280, 45); [self.contentView addSubview:self.addFavourites];
Simulator and iPhone 6 are using the same OS version @middiu ?
iPhone 6 is 8.1.3, Simulator 8.1
Have to check it @middiu
I'm having the same problem running on a iphone6+ and an ipad.
Any idea? Thanks!