USO400
  • Home
  • About
  • KH400
  • SuperSherpa
  • ZX-10
  • Todo
  • ALTO WORKS
  • KMX125
Sign in Subscribe

appearance

A collection of 1 post
ios

UITabBarの色を変える

UITabBarControllerのデザインをちょこちょこ調整する必要があった。 またいつか使いそうな気がするのでメモ。 この設定はiOS7.1系以降なら問題なく動くと思う。7.0系は問題があったようななかったような。 + (UIImage *)imageFromColor:(UIColor *)color size:(CGSize)size { CGRect bounds = CGRectZero; bounds.size = size; UIGraphicsBeginImageContext(bounds.size); CGContextRef contextRef = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(contextRef, [color CGColor]); CGContextFillRect(contextRef, bounds); UIImage *image = UIGraphicsGetImageFromCurren
2015年6月11日 1 min read
Page 1 of 1
USO400 © 2025
Powered by Ghost