PPiAwesomeButton icon indicating copy to clipboard operation
PPiAwesomeButton copied to clipboard

Button not shown on Device but working fine on Simulator

Open middiu opened this issue 10 years ago • 6 comments

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

middiu avatar Mar 05 '15 21:03 middiu

Is there any log information in the XCode debugger @middiu ?

pepicrft avatar Mar 05 '15 22:03 pepicrft

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];

middiu avatar Mar 05 '15 22:03 middiu

Simulator and iPhone 6 are using the same OS version @middiu ?

pepicrft avatar Mar 05 '15 22:03 pepicrft

iPhone 6 is 8.1.3, Simulator 8.1

middiu avatar Mar 05 '15 22:03 middiu

Have to check it @middiu

pepicrft avatar Mar 05 '15 23:03 pepicrft

I'm having the same problem running on a iphone6+ and an ipad.

Any idea? Thanks!

zabumba69 avatar Mar 31 '15 21:03 zabumba69