Fx Developer

Pages

  • Home
  • Tips and Tricks
  • Tutorials
  • iPhone App
  • Contact

May 27, 2014

[iOS] random Color


+ (UIColor*) randomColor
{
    float red   = arc4random() % 256;
    float green = arc4random() % 256;
    float blue  = arc4random() % 256;
  
    return [UIColor colorWithRed:red/255.0 green:green/255.0 blue:blue/255.0 alpha:1.0];
}
Posted by Unknown at 5/27/2014 02:30:00 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Tips and Tricks

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contact Form

Name

Email *

Message *

Search This Blog

Categories

  • iPhone App
  • Tips and Tricks
  • Tutorials

Popular Posts

Blog Archive

  • ▼  2014 (33)
    • ►  September (1)
    • ►  August (2)
    • ►  July (5)
    • ►  June (6)
    • ▼  May (19)
      • Word Look - English
      • FaCal
      • [iOS] play sound
      • Fast food objective-c (part 11) : Categories
      • Fast food objective-c (part 10) : Calling Methods ...
      • Fast food objective-c (part 9) : Properties
      • Fast food objective-c (part 8) : Logging
      • Fast food objective-c (part 7) : More on Memory Ma...
      • Fast food objective-c (part 6) : Class Implementation
      • Fast food objective-c (part 5) : Designing a Class...
      • Fast food objective-c (part 4) : Basic Memory Mana...
      • Fast food objective-c (part 3) : Creating Objects
      • Fast food objective-c (part 2) : Accessors
      • Fast food objective-c (part 1) : Calling Methods
      • [iOS] random Color
      • [iOS] is Numeric ?
      • Fx Stencil
      • [iOS] detectIPhone or iPad
      • [iOS] detected iOS 5, 6 & 7

Contributors

  • Unknown
  • lephuongtien.dev
Le Phuong Tien. Watermark theme. Powered by Blogger.