- 浏览: 340356 次
- 性别:
- 来自: 武汉
文章分类
最新评论
-
leslie89757:
[img][img][img][img][img][img][ ...
CocoaPods 安装使用 -
hanmeizhi:
very useful to me. Thanks
Dismissing MPMoviePlayerViewController the right way -
luzj:
这个考虑不周全, 在iOS5的键盘高度就不是这个值了,这样写死 ...
UITextView: move view when keyboard appears -
xjg19870111:
不错。
objective-c NSString 常用操作 -
juedui0769:
现在已经不行了!
android源码下载
Whenever I have need of a new color in a project, I add new methods to my UIColor(MoreColors) category. I recently refactored it to be more compact and to require less typing to add a new color. I'm pulling the color names and definitions from Wikipedia.
Edit: I got tired of doing these piecemeal, so I decided to use awk to generate a category that includes all the colors that Wikipedia lists.
http://en.wikipedia.org/wiki/List_of_colors
I'm normally not someone to skimp on vertical space, but compacting this just fell right, makes it more comprehensible. Consistency, after all, is the hobgoblin of little minds.
For those playing along at home, here is where it currently stands:
Edit: I got tired of doing these piecemeal, so I decided to use awk to generate a category that includes all the colors that Wikipedia lists.
http://en.wikipedia.org/wiki/List_of_colors
I'm normally not someone to skimp on vertical space, but compacting this just fell right, makes it more comprehensible. Consistency, after all, is the hobgoblin of little minds.
For those playing along at home, here is where it currently stands:
UIColor-MoreColors.h // // UIColor-MoreColors.h // // Created by Jeff LaMarche on 9/29/08. #import <UIKit/UIKit.h> @interface UIColor(MoreColors) + (id)aliceBlue; + (id)alizarin; + (id)amaranth; + (id)amber; + (id)amethyst; + (id)apricot; + (id)aqua; + (id)aquamarine; + (id)armyGreen; + (id)asparagus; + (id)atomicTangerine; + (id)auburn; + (id)azure; + (id)azureWeb; + (id)babyBlue; + (id)beige; + (id)bistre; + (id)black; + (id)blue; + (id)pigmentBlue; + (id)rybBlue; + (id)blueGreen; + (id)blueViolet; + (id)bondiBlue; + (id)brass; + (id)brightGreen; + (id)brightPink; + (id)brightTurquoise; + (id)brilliantRose; + (id)britishRacingGreen; + (id)bronze; + (id)brown; + (id)buff; + (id)burgundy; + (id)burntOrange; + (id)burntSienna; + (id)burntUmber; + (id)camouflageGreen; + (id)caputMortuum; + (id)cardinal; + (id)carmine; + (id)carnationPink; + (id)carolinaBlue; + (id)carrotOrange; + (id)celadon; + (id)cerise; + (id)cerulean; + (id)ceruleanBlue; + (id)champagne; + (id)charcoal; + (id)chartreuse; + (id)chartreuseWeb; + (id)cherryBlossomPink; + (id)chestnut; + (id)chocolate; + (id)cinnabar; + (id)cinnamon; + (id)cobalt; + (id)columbiaBlue; + (id)copper; + (id)copperRose; + (id)coral; + (id)coralRed; + (id)corn; + (id)cornflowerBlue; + (id)cosmicLatte; + (id)cream; + (id)crimson; + (id)cyan; + (id)processCyan; + (id)darkBlue; + (id)darkBrown; + (id)darkCerulean; + (id)darkChestnut; + (id)darkCoral; + (id)darkGoldenrod; + (id)darkGreen; + (id)darkKhaki; + (id)darkPastelGreen; + (id)darkPink; + (id)darkScarlet; + (id)darkSalmon; + (id)darkSlateGray; + (id)darkSpringGreen; + (id)darkTan; + (id)darkTurquoise; + (id)darkViolet; + (id)deepCerise; + (id)deepChestnut; + (id)deepFuchsia; + (id)deepLilac; + (id)deepMagenta; + (id)deepPeach; + (id)deepPink; + (id)denim; + (id)dodgerBlue; + (id)ecru; + (id)egyptianBlue; + (id)electricBlue; + (id)electricGreen; + (id)electricIndigo; + (id)electricLime; + (id)electricPurple; + (id)emerald; + (id)eggplant; + (id)faluRed; + (id)fernGreen; + (id)firebrick; + (id)flax; + (id)forestGreen; + (id)frenchRose; + (id)fuchsia; + (id)fuchsiaPink; + (id)gamboge; + (id)metallicGold; + (id)goldWeb; + (id)goldenBrown; + (id)goldenYellow; + (id)goldenrod; + (id)greyAsparagus; + (id)green; + (id)greenWeb; + (id)pigmentGreen; + (id)rybGreen; + (id)greenYellow; + (id)grey; + (id)hanPurple; + (id)harlequin; + (id)heliotrope; + (id)hollywoodCerise; + (id)hotMagenta; + (id)hotPink; + (id)indigo; + (id)indigoWeb; + (id)internationalKleinBlue; + (id)internationalOrange; + (id)islamicGreen; + (id)ivory; + (id)jade; + (id)kellyGreen; + (id)khaki; + (id)lightKhaki; + (id)lavender; + (id)lavenderWeb; + (id)lavenderBlue; + (id)lavenderBlush; + (id)lavenderGrey; + (id)lavenderMagenta; + (id)lavenderPink; + (id)lavenderPurple; + (id)lavenderRose; + (id)lawnGreen; + (id)lemon; + (id)lemonChiffon; + (id)lightBlue; + (id)lightPink; + (id)lilac; + (id)lime; + (id)limeWeb; + (id)limeGreen; + (id)linen; + (id)magenta; + (id)magentaDye; + (id)processMagenta; + (id)magicMint; + (id)magnolia; + (id)malachite; + (id)maroonWeb; + (id)maroon; + (id)mayaBlue; + (id)mauve; + (id)mauveTaupe; + (id)mediumBlue; + (id)mediumCarmine; + (id)mediumLavenderMagenta; + (id)mediumPurple; + (id)mediumSpringGreen; + (id)midnightBlue; + (id)mintGreen; + (id)mistyRose; + (id)mossGreen; + (id)mountbattenPink; + (id)mustard; + (id)myrtle; + (id)navajoWhite; + (id)navyBlue; + (id)ochre; + (id)officeGreen; + (id)oldGold; + (id)oldLace; + (id)oldLavender; + (id)oldRose; + (id)olive; + (id)oliveDrab; + (id)olivine; + (id)orange; + (id)rybOrange; + (id)orangeWeb; + (id)orangePeel; + (id)orangeRed; + (id)orchid; + (id)paleBlue; + (id)paleBrown; + (id)paleCarmine; + (id)paleChestnut; + (id)paleCornflowerBlue; + (id)paleMagenta; + (id)palePink; + (id)paleRedViolet; + (id)papayaWhip; + (id)pastelGreen; + (id)pastelPink; + (id)peach; + (id)peachOrange; + (id)peachYellow; + (id)pear; + (id)periwinkle; + (id)persianBlue; + (id)persianGreen; + (id)persianIndigo; + (id)persianOrange; + (id)persianRed; + (id)persianPink; + (id)persianRose; + (id)persimmon; + (id)pineGreen; + (id)pink; + (id)pinkOrange; + (id)platinum; + (id)plum; + (id)powderBlue; + (id)puce; + (id)prussianBlue; + (id)psychedelicPurple; + (id)pumpkin; + (id)purpleWeb; + (id)purple; + (id)purpleTaupe; + (id)rawUmber; + (id)razzmatazz; + (id)red; + (id)pigmentRed; + (id)rybRed; + (id)redBiolet; + (id)richCarmine; + (id)robinEggBlue; + (id)rose; + (id)roseMadder; + (id)roseTaupe; + (id)royalBlue; + (id)royalPurple; + (id)ruby; + (id)russet; + (id)rust; + (id)safetyOrange; + (id)blazeOrange; + (id)saffron; + (id)salmon; + (id)sandyBrown; + (id)sangria; + (id)sapphire; + (id)scarlet; + (id)schoolBusYellow; + (id)seaGreen; + (id)seashell; + (id)selectiveYellow; + (id)sepia; + (id)shamrockGreen; + (id)shockingPink; + (id)silver; + (id)skyBlue; + (id)slateGrey; + (id)smalt; + (id)springBud; + (id)springGreen; + (id)steelBlue; + (id)tan; + (id)tangerine; + (id)tangerineYellow; + (id)taupe; + (id)teaGreen; + (id)teaRoseOrange; + (id)teaRose; + (id)teal; + (id)tawny; + (id)terraCotta; + (id)thistle; + (id)tomato; + (id)turquoise; + (id)tyrianPurple; + (id)ultramarine; + (id)unitedNationsBlue; + (id)vegasGold; + (id)vermilion; + (id)violet; + (id)violetWeb; + (id)rybViolet; + (id)viridian; + (id)wheat; + (id)white; + (id)wisteria; + (id)yellow; + (id)processYellow; + (id)rybYellow; + (id)yellowGreen; + (id)zinnwaldite; @end
UIColor-MoreColors.m // // UIColor-MoreColors.m // // Created by Jeff LaMarche on 9/29/08. #import "UIColor-MoreColors.h" #define vendColor(r, g, b) static UIColor *ret; if (ret == nil) ret = [[UIColor colorWithRed:(CGFloat)r/255.0 green:(CGFloat)g/255.0 blue:(CGFloat)b/255.0 alpha:1.0] retain]; return ret @implementation UIColor(MoreColors) + (id)aliceBlue {vendColor(240, 248, 255);} + (id)alizarin {vendColor(227, 38, 54);} + (id)amaranth {vendColor(229, 43, 80);} + (id)amber {vendColor(255, 191, 0);} + (id)amethyst {vendColor(153, 102, 204);} + (id)apricot {vendColor(251, 206, 177);} + (id)aqua {vendColor(0, 255, 255);} + (id)aquamarine {vendColor(127, 255, 212);} + (id)armyGreen {vendColor(75, 83, 32);} + (id)asparagus {vendColor(123, 160, 91);} + (id)atomicTangerine {vendColor(255, 153, 102);} + (id)auburn {vendColor(111, 53, 26);} + (id)azure {vendColor(0, 127, 255);} + (id)azureWeb {vendColor(240, 255, 255);} + (id)babyBlue {vendColor(224, 255, 255);} + (id)beige {vendColor(245, 245, 220);} + (id)bistre {vendColor(61, 43, 31);} + (id)black {vendColor(0, 0, 0);} + (id)blue {vendColor(0, 0, 255);} + (id)pigmentBlue {vendColor(51, 51, 153);} + (id)rybBlue {vendColor(2, 71, 254);} + (id)blueGreen {vendColor(0, 223, 223);} + (id)blueViolet {vendColor(138, 43, 226);} + (id)bondiBlue {vendColor(0, 149, 182);} + (id)brass {vendColor(181, 166, 66);} + (id)brightGreen {vendColor(102, 255, 0);} + (id)brightPink {vendColor(255, 0, 127);} + (id)brightTurquoise {vendColor(8, 232, 222);} + (id)brilliantRose {vendColor(255, 85, 163);} + (id)britishRacingGreen {vendColor(0, 66, 37);} + (id)bronze {vendColor(205, 127, 50);} + (id)brown {vendColor(150, 75, 0);} + (id)buff {vendColor(240, 220, 130);} + (id)burgundy {vendColor(128, 0, 32);} + (id)burntOrange {vendColor(204, 85, 0);} + (id)burntSienna {vendColor(233, 116, 81);} + (id)burntUmber {vendColor(138, 51, 36);} + (id)camouflageGreen {vendColor(120, 134, 107);} + (id)caputMortuum {vendColor(89, 39, 32);} + (id)cardinal {vendColor(196, 30, 58);} + (id)carmine {vendColor(150, 0, 24);} + (id)carnationPink {vendColor(255, 166, 201);} + (id)carolinaBlue {vendColor(156, 186, 227);} + (id)carrotOrange {vendColor(237, 145, 33);} + (id)celadon {vendColor(172, 225, 175);} + (id)cerise {vendColor(222, 49, 99);} + (id)cerulean {vendColor(0, 123, 167);} + (id)ceruleanBlue {vendColor(42, 82, 190);} + (id)champagne {vendColor(247, 231, 206);} + (id)charcoal {vendColor(70, 70, 70);} + (id)chartreuse {vendColor(223, 255, 0);} + (id)chartreuseWeb {vendColor(127, 255, 0);} + (id)cherryBlossomPink {vendColor(255, 183, 197);} + (id)chestnut {vendColor(205, 92, 92);} + (id)chocolate {vendColor(123, 63, 0);} + (id)cinnabar {vendColor(227, 66, 52);} + (id)cinnamon {vendColor(210, 105, 30);} + (id)cobalt {vendColor(0, 71, 171);} + (id)columbiaBlue {vendColor(155, 221, 255);} + (id)copper {vendColor(184, 115, 51);} + (id)copperRose {vendColor(153, 102, 102);} + (id)coral {vendColor(255, 127, 80);} + (id)coralRed {vendColor(255, 64, 64);} + (id)corn {vendColor(251, 236, 93);} + (id)cornflowerBlue {vendColor(100, 149, 237);} + (id)cosmicLatte {vendColor(255, 248, 231);} + (id)cream {vendColor(255, 253, 208);} + (id)crimson {vendColor(220, 20, 60);} + (id)cyan {vendColor(0, 255, 255);} + (id)processCyan {vendColor(0, 180, 247);} + (id)darkBlue {vendColor(0, 0, 139);} + (id)darkBrown {vendColor(101, 67, 33);} + (id)darkCerulean {vendColor(8, 69, 126);} + (id)darkChestnut {vendColor(152, 105, 96);} + (id)darkCoral {vendColor(205, 91, 69);} + (id)darkGoldenrod {vendColor(184, 134, 11);} + (id)darkGreen {vendColor(1, 50, 32);} + (id)darkKhaki {vendColor(189, 183, 107);} + (id)darkPastelGreen {vendColor(3, 192, 60);} + (id)darkPink {vendColor(231, 84, 128);} + (id)darkScarlet {vendColor(86, 3, 125);} + (id)darkSalmon {vendColor(233, 150, 122);} + (id)darkSlateGray {vendColor(47, 79, 79);} + (id)darkSpringGreen {vendColor(23, 114, 69);} + (id)darkTan {vendColor(145, 129, 81);} + (id)darkTurquoise {vendColor(0, 206, 209);} + (id)darkViolet {vendColor(148, 0, 211);} + (id)deepCerise {vendColor(218, 50, 135);} + (id)deepChestnut {vendColor(185, 78, 72);} + (id)deepFuchsia {vendColor(193, 84, 193);} + (id)deepLilac {vendColor(153, 85, 187);} + (id)deepMagenta {vendColor(204, 0, 204);} + (id)deepPeach {vendColor(255, 203, 164);} + (id)deepPink {vendColor(255, 20, 147);} + (id)denim {vendColor(21, 96, 189);} + (id)dodgerBlue {vendColor(30, 144, 255);} + (id)ecru {vendColor(194, 178, 128);} + (id)egyptianBlue {vendColor(16, 52, 166);} + (id)electricBlue {vendColor(125, 249, 255);} + (id)electricGreen {vendColor(0, 255, 0);} + (id)electricIndigo {vendColor(102, 0, 255);} + (id)electricLime {vendColor(204, 255, 0);} + (id)electricPurple {vendColor(191, 0, 255);} + (id)emerald {vendColor(80, 200, 120);} + (id)eggplant {vendColor(97, 64, 81);} + (id)faluRed {vendColor(128, 24, 24);} + (id)fernGreen {vendColor(79, 121, 66);} + (id)firebrick {vendColor(178, 34, 34);} + (id)flax {vendColor(238, 220, 130);} + (id)forestGreen {vendColor(34, 139, 34);} + (id)frenchRose {vendColor(246, 74, 138);} + (id)fuchsia {vendColor(255, 0, 255);} + (id)fuchsiaPink {vendColor(255, 119, 255);} + (id)gamboge {vendColor(228, 155, 15);} + (id)metallicGold {vendColor(212, 175, 55);} + (id)goldWeb {vendColor(255, 215, 0);} + (id)goldenBrown {vendColor(153, 101, 21);} + (id)goldenYellow {vendColor(255, 223, 0);} + (id)goldenrod {vendColor(218, 165, 32);} + (id)greyAsparagus {vendColor(70, 89, 69);} + (id)green {vendColor(0, 255, 0);} + (id)greenWeb {vendColor(0, 128, 0);} + (id)pigmentGreen {vendColor(0, 165, 80);} + (id)rybGreen {vendColor(102, 176, 50);} + (id)greenYellow {vendColor(173, 255, 47);} + (id)grey {vendColor(128, 128, 128);} + (id)hanPurple {vendColor(82, 24, 250);} + (id)harlequin {vendColor(63, 255, 0);} + (id)heliotrope {vendColor(223, 115, 255);} + (id)hollywoodCerise {vendColor(244, 0, 161);} + (id)hotMagenta {vendColor(255, 0, 204);} + (id)hotPink {vendColor(255, 105, 180);} + (id)indigo {vendColor(0, 65, 106);} + (id)indigoWeb {vendColor(75, 0, 130);} + (id)internationalKleinBlue {vendColor(0, 47, 167);} + (id)internationalOrange {vendColor(255, 79, 0);} + (id)islamicGreen {vendColor(0, 153, 0);} + (id)ivory {vendColor(255, 255, 240);} + (id)jade {vendColor(0, 168, 107);} + (id)kellyGreen {vendColor(76, 187, 23);} + (id)khaki {vendColor(195, 176, 145);} + (id)lightKhaki {vendColor(240, 230, 140);} + (id)lavender {vendColor(181, 126, 220);} + (id)lavenderWeb {vendColor(230, 230, 250);} + (id)lavenderBlue {vendColor(204, 204, 255);} + (id)lavenderBlush {vendColor(255, 240, 245);} + (id)lavenderGrey {vendColor(196, 195, 221);} + (id)lavenderMagenta {vendColor(238, 130, 238);} + (id)lavenderPink {vendColor(251, 174, 210);} + (id)lavenderPurple {vendColor(150, 120, 182);} + (id)lavenderRose {vendColor(251, 160, 227);} + (id)lawnGreen {vendColor(124, 252, 0);} + (id)lemon {vendColor(253, 233, 16);} + (id)lemonChiffon {vendColor(255, 250, 205);} + (id)lightBlue {vendColor(173, 216, 230);} + (id)lightPink {vendColor(255, 182, 193);} + (id)lilac {vendColor(200, 162, 200);} + (id)lime {vendColor(191, 255, 0);} + (id)limeWeb {vendColor(0, 255, 0);} + (id)limeGreen {vendColor(50, 205, 50);} + (id)linen {vendColor(250, 240, 230);} + (id)magenta {vendColor(255, 0, 255);} + (id)magentaDye {vendColor(202, 31, 23);} + (id)processMagenta {vendColor(255, 0, 144);} + (id)magicMint {vendColor(170, 240, 209);} + (id)magnolia {vendColor(248, 244, 255);} + (id)malachite {vendColor(11, 218, 81);} + (id)maroonWeb {vendColor(128, 0, 0);} + (id)maroon {vendColor(176, 48, 96);} + (id)mayaBlue {vendColor(115, 194, 251);} + (id)mauve {vendColor(224, 176, 255);} + (id)mauveTaupe {vendColor(145, 95, 109);} + (id)mediumBlue {vendColor(0, 0, 205);} + (id)mediumCarmine {vendColor(175, 64, 53);} + (id)mediumLavenderMagenta {vendColor(204, 153, 204);} + (id)mediumPurple {vendColor(147, 112, 219);} + (id)mediumSpringGreen {vendColor(0, 250, 154);} + (id)midnightBlue {vendColor(0, 51, 102);} + (id)mintGreen {vendColor(152, 255, 152);} + (id)mistyRose {vendColor(255, 228, 225);} + (id)mossGreen {vendColor(173, 223, 173);} + (id)mountbattenPink {vendColor(153, 122, 141);} + (id)mustard {vendColor(255, 219, 88);} + (id)myrtle {vendColor(33, 66, 30);} + (id)navajoWhite {vendColor(255, 222, 173);} + (id)navyBlue {vendColor(0, 0, 128);} + (id)ochre {vendColor(204, 119, 34);} + (id)officeGreen {vendColor(0, 128, 0);} + (id)oldGold {vendColor(207, 181, 59);} + (id)oldLace {vendColor(253, 245, 230);} + (id)oldLavender {vendColor(121, 104, 120);} + (id)oldRose {vendColor(192, 46, 76);} + (id)olive {vendColor(128, 128, 0);} + (id)oliveDrab {vendColor(107, 142, 35);} + (id)olivine {vendColor(154, 185, 115);} + (id)orange {vendColor(255, 127, 0);} + (id)rybOrange {vendColor(251, 153, 2);} + (id)orangeWeb {vendColor(255, 165, 0);} + (id)orangePeel {vendColor(255, 160, 0);} + (id)orangeRed {vendColor(255, 69, 0);} + (id)orchid {vendColor(218, 112, 214);} + (id)paleBlue {vendColor(175, 238, 238);} + (id)paleBrown {vendColor(152, 118, 84);} + (id)paleCarmine {vendColor(175, 64, 53);} + (id)paleChestnut {vendColor(221, 173, 175);} + (id)paleCornflowerBlue {vendColor(171, 205, 239);} + (id)paleMagenta {vendColor(249, 132, 229);} + (id)palePink {vendColor(250, 218, 221);} + (id)paleRedViolet {vendColor(219, 112, 147);} + (id)papayaWhip {vendColor(255, 239, 213);} + (id)pastelGreen {vendColor(119, 221, 119);} + (id)pastelPink {vendColor(255, 209, 220);} + (id)peach {vendColor(255, 229, 180);} + (id)peachOrange {vendColor(255, 204, 153);} + (id)peachYellow {vendColor(250, 223, 173);} + (id)pear {vendColor(209, 226, 49);} + (id)periwinkle {vendColor(204, 204, 255);} + (id)persianBlue {vendColor(28, 57, 187);} + (id)persianGreen {vendColor(0, 166, 147);} + (id)persianIndigo {vendColor(50, 18, 122);} + (id)persianOrange {vendColor(217, 144, 88);} + (id)persianRed {vendColor(204, 51, 51);} + (id)persianPink {vendColor(247, 127, 190);} + (id)persianRose {vendColor(254, 40, 162);} + (id)persimmon {vendColor(236, 88, 0);} + (id)pineGreen {vendColor(1, 121, 111);} + (id)pink {vendColor(255, 192, 203);} + (id)pinkOrange {vendColor(255, 153, 102);} + (id)platinum {vendColor(229, 228, 226);} + (id)plum {vendColor(204, 153, 204);} + (id)powderBlue {vendColor(176, 224, 230);} + (id)puce {vendColor(204, 136, 153);} + (id)prussianBlue {vendColor(0, 49, 83);} + (id)psychedelicPurple {vendColor(221, 0, 255);} + (id)pumpkin {vendColor(255, 117, 24);} + (id)purpleWeb {vendColor(128, 0, 128);} + (id)purple {vendColor(160, 92, 240);} + (id)purpleTaupe {vendColor(80, 64, 77);} + (id)rawUmber {vendColor(115, 74, 18);} + (id)razzmatazz {vendColor(227, 11, 92);} + (id)red {vendColor(255, 0, 0);} + (id)pigmentRed {vendColor(237, 28, 36);} + (id)rybRed {vendColor(254, 39, 18);} + (id)redBiolet {vendColor(199, 21, 133);} + (id)richCarmine {vendColor(215, 0, 64);} + (id)robinEggBlue {vendColor(0, 204, 204);} + (id)rose {vendColor(255, 0, 127);} + (id)roseMadder {vendColor(227, 38, 54);} + (id)roseTaupe {vendColor(144, 93, 93);} + (id)royalBlue {vendColor(65, 105, 225);} + (id)royalPurple {vendColor(107, 63, 160);} + (id)ruby {vendColor(224, 17, 95);} + (id)russet {vendColor(128, 70, 27);} + (id)rust {vendColor(183, 65, 14);} + (id)safetyOrange {vendColor(255, 102, 0);} + (id)blazeOrange {vendColor(255, 102, 0);} + (id)saffron {vendColor(244, 196, 48);} + (id)salmon {vendColor(255, 140, 105);} + (id)sandyBrown {vendColor(244, 164, 96);} + (id)sangria {vendColor(146, 0, 10);} + (id)sapphire {vendColor(8, 37, 103);} + (id)scarlet {vendColor(255, 36, 0);} + (id)schoolBusYellow {vendColor(255, 216, 0);} + (id)seaGreen {vendColor(46, 139, 87);} + (id)seashell {vendColor(255, 245, 238);} + (id)selectiveYellow {vendColor(255, 186, 0);} + (id)sepia {vendColor(112, 66, 20);} + (id)shamrockGreen {vendColor(0, 158, 96);} + (id)shockingPink {vendColor(252, 15, 192);} + (id)silver {vendColor(192, 192, 192);} + (id)skyBlue {vendColor(135, 206, 235);} + (id)slateGrey {vendColor(112, 128, 144);} + (id)smalt {vendColor(0, 51, 153);} + (id)springBud {vendColor(167, 252, 0);} + (id)springGreen {vendColor(0, 255, 127);} + (id)steelBlue {vendColor(70, 130, 180);} + (id)tan {vendColor(210, 180, 140);} + (id)tangerine {vendColor(242, 133, 0);} + (id)tangerineYellow {vendColor(255, 204, 0);} + (id)taupe {vendColor(72, 60, 50);} + (id)teaGreen {vendColor(208, 240, 192);} + (id)teaRoseOrange {vendColor(248, 131, 194);} + (id)teaRose {vendColor(244, 194, 194);} + (id)teal {vendColor(0, 128, 128);} + (id)tawny {vendColor(205, 87, 0);} + (id)terraCotta {vendColor(226, 114, 91);} + (id)thistle {vendColor(216, 191, 216);} + (id)tomato {vendColor(255, 99, 71);} + (id)turquoise {vendColor(48, 213, 200);} + (id)tyrianPurple {vendColor(102, 2, 60);} + (id)ultramarine {vendColor(18, 10, 143);} + (id)unitedNationsBlue {vendColor(91, 146, 229);} + (id)vegasGold {vendColor(197, 179, 88);} + (id)vermilion {vendColor(227, 66, 51);} + (id)violet {vendColor(139, 0, 255);} + (id)violetWeb {vendColor(238, 130, 238);} + (id)rybViolet {vendColor(2, 71, 54);} + (id)viridian {vendColor(64, 130, 109);} + (id)wheat {vendColor(245, 222, 179);} + (id)white {vendColor(255, 255, 255);} + (id)wisteria {vendColor(201, 160, 220);} + (id)yellow {vendColor(255, 255, 0);} + (id)processYellow {vendColor(255, 239, 0);} + (id)rybYellow {vendColor(254, 254, 51);} + (id)yellowGreen {vendColor(154, 205, 50);} + (id)zinnwaldite {vendColor(235, 194, 175);} @end
发表评论
-
IOS7.1 企业应用 证书无效 已解决
2014-05-10 10:53 774http://www.cocoachina.com/bbs/r ... -
xCode Find&Replace快捷键
2013-10-28 10:44 907As for Find & Replace, they ... -
iOS整合zxing需要注意的地方
2013-08-02 23:34 2106Well, at last I got it working. ... -
iOS 自定义Tabbar
2013-07-30 22:55 1191http://www.appcoda.com/ios-prog ... -
Apple Push Notification Service总结
2013-07-29 22:39 1115苹果推送通知服务使用总结 1. 在 Mac 上从 KeyCha ... -
iOS 消息推送原理及实现
2013-07-12 13:40 856链接: http://www.dapps.net/dev/ ... -
GIMP IMAGE MAP
2013-05-29 16:13 854使用GIMP 制作 IMAGE MAP 1. 选择图片,用G ... -
INSPIRATION
2013-05-27 18:21 813http://www.patternsofdesign.co. ... -
iOS 自定义控件系列
2013-05-27 17:09 1481iOS自定义控件 自定义UITableViewCell ht ... -
CocoaPods 使用教程
2013-05-27 14:49 768http://mobile.tutsplus.com/tuto ... -
IOS 开发之设置UIButton的title
2013-05-11 22:03 1207btn.frame = CGRectMake(x, y, wi ... -
REActivityViewController 使用 备忘
2013-04-22 21:38 1059REActivityViewController Out o ... -
VPS配置二级域名
2013-04-18 23:08 7881. 域名解析商配置泛解析 主机记录 * 记录类型 A 2. ... -
ios 开发NewsStand指南
2013-04-13 21:44 1324http://www.viggiosoft.com/blog/ ... -
Python Django mod_wsgi Windows 部署过程 备忘
2013-04-10 18:28 1587部署环境:Windows2003Server 1. 安装Ap ... -
网站迁移 备忘
2013-04-10 14:58 7511. 备份数据库。。。导出的格式和编码要注意 2. 完全导出网 ... -
Windows下命令行查看端口占用
2013-04-09 23:42 723在windows命令行窗口下执行: C:\>netst ... -
带预览功能又可分页的UIScrollView
2013-04-05 12:56 823带预览功能又可分页的UIScrollView http:// ... -
25 iOS App 性能优化
2013-04-05 10:51 695http://www.raywenderlich.com/ ... -
UIScrollView滚动, 中间显示整图, 前后露出部分图
2013-04-04 00:12 1200UIScrollView *scrollowView = [[ ...
相关推荐
在iOS开发中,颜色选择器是一个常见的功能,用于让用户自定义或选取颜色。"ios-颜色选择器.zip" 提供了一个名为 "ZAColorChooseView" 的解决方案,它支持通过CocoaPods进行集成,便于在项目中快速引入。CocoaPods是...
通过本教材的学习,开发者不仅可以了解到iPhone游戏开发的基础知识和技术细节,还能获得关于如何选择合适的开发技术和工具的指导。无论是对Objective-C这样的编程语言还是对图形渲染和声音播放等技术的选择,本书都...
### 相关知识点 #### 1. **游戏开发基础概念** ...通过上述知识点的学习,即便是没有编程经验的新手也能逐步理解和掌握iPhone应用开发的基本流程和技术要点。这对于希望进入IT行业的人员来说是一笔宝贵的财富。
iPhone开发中的动画类库提供了丰富的功能,使得开发者能够创建出各种动态效果,如旋转、翻滚和渐变。本资源是一个专注于iPhone开发的动画类库,包含了源代码,可以直接导入到你的iOS项目中使用,极大地简化了动画...
这种方式提供了更高的灵活性,但同时也需要更多的编码工作。 #### 三、高级话题 - **分层数据处理**:在处理复杂的层级数据结构时,如树形结构,可以利用表视图及其代理方法来实现。例如,可以使用`tableView(_:...
在iOS应用开发中,颜色选择器(Color Picker)是一个非常重要的组件,特别是在用户需要自定义界面颜色或进行色彩选择的场景下。标题提到的"iPhone应用中颜色拾取器源代码"提供了一个实用的解决方案,使得开发者可以...
### Cocos2d-iPhone开发教程相关知识点 #### 一、Cocos2d-iPhone简介与版权要求 **Cocos2d-iPhone**是一款专为iOS设备设计的2D游戏开发框架,它基于OpenGL ES图形渲染,并且拥有丰富的功能集,能够支持多种游戏...
8. **样式定制**:为了模拟iPhone的样式,开发者可能需要修改默认的字体、颜色、背景等样式,以使选择器看起来更接近于iOS的picker view。 总的来说,"仿Iphone实现滑动选择器"是一个涉及Android视图自定义、数据...
在"iPhone开发【十】多视图技术总结之二:Navigation"中,博主可能详细讲解了以下几点: 1. **Navigation Bar**:导航控制器顶部的导航栏,显示了当前视图的标题,并且可以包含左侧和右侧的Bar Button Items,用于...
例如,可以在storyboard中创建两个或更多的Child View Controller,并将它们的View添加为Container View的子视图。然后,根据Segmented Control的选中状态,显示或隐藏对应的Child View Controller的View。 在代码...
### 三十一天iPhone开发实例——第1天:午夜倒计时应用 #### 知识点一:理解NDA与SDK的变化 - **NDA**(Non-Disclosure Agreement,保密协议):早期iOS开发阶段,苹果公司为了保护其软件开发工具包(SDK)不被滥用...
在本篇文章中,我们将深入探讨如何在iPhone应用中实现星星评分控件,以及它在开发中的应用。 首先,我们要了解iOS开发的主要语言Objective-C或Swift。虽然标题没有明确指出是使用哪种语言,但这里我们将会涵盖两种...
在iPhone开发中,图形界面的构建是至关重要的,尤其是对于那些需要自定义视觉效果的应用程序。本教程将深入探讨两个主要的图形库:Quartz 2D和OpenGL ES,它们是iOS平台上进行图形绘制的核心工具。 Quartz 2D是Core...
**UISlider是iOS开发中一个重要的基础控件,主要用于实现用户在一定范围内的数值选择。在iPhone应用开发中,UISlider常被用于音量调节、进度条控制等场景...通过不断实践和探索,你可以创造出更多富有创意的界面元素。
总之,iPhone开发涉及多个层面,从基本的屏幕截图和图形绘制,到更高级的延时函数和动画效果的实现。理解并熟练运用这些技术是成为一名合格的iPhone开发者的基础。通过实践和不断学习,开发者可以创建出功能丰富且...
本实例“iphone开发实例 TableView 02”将重点讲解如何通过偏移量(Offset)改变TableView背景,这通常用于实现滚动时背景动态变化的效果,提升用户体验。 首先,我们需要了解UITableView的基本结构。UITableView由...
对于用户来说,这份文件可能提供了关于应用如何适应中文环境的更多信息,也表明了开发者对本地化用户体验的重视。 最后,【关于大眼仔~旭.url】可能是一个链接,指向开发者或者汉化团队的个人或社区页面。用户可以...