まいまいワークス

主にiPhoneアプリの開発で考えた事、調べた事、感じた事などを記していきます。

カードをくるっと回転させる処理

アプリの中のちょっとした見せ方でビューをモーダビューのUIModalTransitionStyleFlipHorizontal のようにくるっと回転させるやり方です。
coreAnimationとか使わなきゃダメなのかなーって思っていたのですが、 alpha値の処理でUIViewのアニメーションでそれっぽい感じにできました。

2枚のviewを重ねておき、一方をalpha=0もう一方をalpha=1にセット アニメーションと同時にalpha値を0→1、1→0に変更することによって回転によってカードの裏側が見えるような効果が得られます。

f:id:cccookie:20150101214155g:plain

//@interface〜@endで宣言しておく
@property(nonatomic, strong)UIButton* button;
@property(nonatomic, strong)UIImageView* card;




- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    //最初に表示されているカードの表側
    //タップを検知するためにボタンにしている
    //alpha値は1
    _button = [UIButton buttonWithType:UIButtonTypeCustom];
    _button.frame = CGRectMake(50, 50, 100, 150);
    _button.alpha = 1.0;
    UIImage* image = [UIImage imageNamed:@"omote.png"];
    [_button setImage:image forState:UIControlStateNormal];
    [_button addTarget:self
               action:@selector(buttonDidPush) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:_button];
    
    
    //アニメーション後に表示するカードの裏側
    //alpha値は0
    _card = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ura.png"]];
    _card.frame = CGRectMake(50, 50, 100, 150);
    _card.alpha = 0.0;
    [self.view addSubview:_card];
    
}


//ボタンタップで呼ばれるメソッド
-(void)buttonDidPush{
    
    //アニメーションとともに
    //表側(_button)のalpha値を0
    //裏側(_card)カードのalpha値を1にそれぞれ切り替える
    [UIView transitionWithView:_button
                      duration:0.5
                       options:UIViewAnimationOptionTransitionFlipFromLeft
                    animations:^{
                        _button.alpha = 0.0;
                    }
                    completion:^(BOOL finished) {
                        
                    }
     ];
    
    [UIView transitionWithView:_card
                      duration:0.5
                       options:UIViewAnimationOptionTransitionFlipFromLeft
                    animations:^{
                        _card.alpha = 1.0;
                    }
                    completion:^(BOOL finished) {
                        
                    }
     ];
}

push通知の証明書をp12からpemに変換するコマンド

push通知の証明書ファイル作成は1つのアプリで1回しかやらない作業だから毎回忘れてしまいます。
キーチェーンアクセスからp12形式で書き出すところはいろいろなブログなどでも書かれているので割愛するとして、pemファイルへの変換(p12を食わせればいいシステムの場合もあるようです)のたびにググるのが面倒だったのでシェルスクリプトにしちゃいました。
っていってもたいしたことないです。

#!/bin/sh

inFile=$1.p12
outFile=$1.pem
openssl pkcs12 -in $inFile -out $outFile -nodes

エディタで上記を保存。
適当にmakepem.shとか名前をつけておきます。
同じ階層に例えばnotification.p12を用意して

./makepem notification

ターミナルでこんな風に叩けばnotification.pemの出来上がり!

viewController単位での回転制御

普段、縦画面固定のアプリを作る事が多いので、縦横対応などが出てくると見事にハマってしまいました。
原因と解決方法などのメモ。

やりたかった事

基本的には縦画面固定だが、一部の画面で縦横対応にしたい

ハマったポイント

-(BOOL)shouldAutorotate;でNOを返しても画面が回転してしまう

原因

UINavigationControllerなどのコンテナビューでは、子ビューの-(BOOL)shouldAutorotate;は無視されて、親ビューの設定が反映されてしまう

対策

UINavigationControllerのカテゴリを作成し、子ビューからもshouldAutorotateを叩けるようにします。

UINavigationController+rotateControl.h

#import <UIKit/UIKit.h>

@interface UINavigationController (rotateControl)

- (BOOL)shouldAutorotate;
- (NSUInteger)supportedInterfaceOrientations;
@end

   
 
UINavigationController+rotateControl.m

#import "UINavigationController+rotateControl.h"

@implementation UINavigationController (rotateControl)


- (NSUInteger)supportedInterfaceOrientations
{
    return [self.visibleViewController supportedInterfaceOrientations];
}

- (BOOL)shouldAutorotate
{
    return [self.visibleViewController shouldAutorotate];
}
@end

これで、コンテナビューの子ビューからも回転制御のメソッドが叩けます。
当該ビューコントローラーで、以下のように記述すれば回転しません。

 
hogeViewController.m

-(BOOL)shouldAutorotate{
    return NO;
}

また、回転方向を制御する場合はsupportedInterfaceOrientationsでサポートする方向を返せば良さそうです。

 
hogeViewController.m

-(BOOL)shouldAutorotate{
    return YES;
}

-(NSUInteger)supportedInterfaceOrientations{

    return UIInterfaceOrientationMaskLandscape;

}

Apple Store, Omotesando

先週金曜日にAppleStore表参道店とウワサされていた工事物件の
覆いが外され、
Apple Store, Omotesando もうすぐ」
ケヤキの樹の下で、ちょっと特別なことが始まります。」
との表示がなされています。

ネットでもこの話題で持ち切りでしたね。

f:id:cccookie:20140530140154j:plain

実際、どんな店舗になるのでしょうか?
工事中に何度か写真を撮ったのですが、
外観はガラス張り、店内のフロアには大きくくり抜かれた形跡があるので
高さ的には2階建ての高さがあるのですが、
超開放的なガラス張りの1階部分と、店内入ってすぐのガラス製のらせん階段で地下につながってる感じでしょうか?
期待が高まりますね。

f:id:cccookie:20140131132644j:plain

こちら、サイドの壁面がガラスで構成されているようにみえます。

f:id:cccookie:20140410134150j:plain

前を通りがかった時にチラ見えしていたので激写!
エントランス部分のフロアに大きな穴があいているように見えます。

f:id:cccookie:20140602115351j:plain

地上1階、地下2階と書かれていますね。
(画像は週間アスキーさんから拝借)
期待大♪

UIColorの色指定

UIColorの色指定は標準で十数色の色が定義されていて、以下のように指定ができます。
[UIColor redColor]

それ以外の色を指定する場合は
[UIColor colorWithRed: green: blue: alpha:]
などで指定する必用があります。

f:id:cccookie:20140520190115j:plain

これではあまりにも面倒なので、以下のようなマクロを定義するとほとんど数値だけの指定になるので、いくぶんラクになります。
#define RGBA(r, g, b, a) [UIColor colorWithRed: (r)/255.0 green: (g)/255.0 blue: (b)/255.0 alpha: (a)]


一方で、ひとつのアプリで使用される色は数色〜十数色くらいなので、アプリ毎に色を定義してあげると、コーディングはかなり楽になります。
#define myappColorPink [UIColor colorWithRed: (240.0)/255.0 green: (129.0)/255.0 blue: (163.0)/255.0 alpha: 1.0]
#define myappColorLightBrown [UIColor colorWithRed: (126.0)/255.0 green: (115.0)/255.0 blue: (106.0)/255.0 alpha: 1.0]

今回、これを拡張して数百色の色定義サンプルを作成しました。

/** 原色サンプル */
/** http://www.colordic.org */

#define myColorBlack [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorDimgray [UIColor colorWithRed: (105.0)/255.0 green: (105.0)/255.0 blue: (105.0)/255.0 alpha: 1.0]
#define myColorGray [UIColor colorWithRed: (128.0)/255.0 green: (128.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]
#define myColorDarkgray [UIColor colorWithRed: (169.0)/255.0 green: (169.0)/255.0 blue: (169.0)/255.0 alpha: 1.0]
#define myColorSilver [UIColor colorWithRed: (192.0)/255.0 green: (192.0)/255.0 blue: (192.0)/255.0 alpha: 1.0]
#define myColorLightgray [UIColor colorWithRed: (211.0)/255.0 green: (211.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]
#define myColorGainsboro [UIColor colorWithRed: (220.0)/255.0 green: (220.0)/255.0 blue: (220.0)/255.0 alpha: 1.0]
#define myColorWhitesmoke [UIColor colorWithRed: (245.0)/255.0 green: (245.0)/255.0 blue: (245.0)/255.0 alpha: 1.0]
#define myColorWhite [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorSnow [UIColor colorWithRed: (255.0)/255.0 green: (250.0)/255.0 blue: (250.0)/255.0 alpha: 1.0]
#define myColorGhostwhite [UIColor colorWithRed: (248.0)/255.0 green: (248.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorFloralwhite [UIColor colorWithRed: (255.0)/255.0 green: (250.0)/255.0 blue: (240.0)/255.0 alpha: 1.0]
#define myColorLinen [UIColor colorWithRed: (250.0)/255.0 green: (240.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]
#define myColorAntiquewhite [UIColor colorWithRed: (250.0)/255.0 green: (235.0)/255.0 blue: (215.0)/255.0 alpha: 1.0]
#define myColorPapayawhip [UIColor colorWithRed: (255.0)/255.0 green: (239.0)/255.0 blue: (213.0)/255.0 alpha: 1.0]
#define myColorBlanchedalmond [UIColor colorWithRed: (255.0)/255.0 green: (235.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]
#define myColorBisque [UIColor colorWithRed: (255.0)/255.0 green: (228.0)/255.0 blue: (196.0)/255.0 alpha: 1.0]
#define myColorMoccasin [UIColor colorWithRed: (255.0)/255.0 green: (228.0)/255.0 blue: (181.0)/255.0 alpha: 1.0]
#define myColorNavajowhite [UIColor colorWithRed: (255.0)/255.0 green: (222.0)/255.0 blue: (173.0)/255.0 alpha: 1.0]
#define myColorPeachpuff [UIColor colorWithRed: (255.0)/255.0 green: (218.0)/255.0 blue: (185.0)/255.0 alpha: 1.0]
#define myColorMistyrose [UIColor colorWithRed: (255.0)/255.0 green: (228.0)/255.0 blue: (225.0)/255.0 alpha: 1.0]
#define myColorLavenderblush [UIColor colorWithRed: (255.0)/255.0 green: (240.0)/255.0 blue: (245.0)/255.0 alpha: 1.0]
#define myColorSeashell [UIColor colorWithRed: (255.0)/255.0 green: (245.0)/255.0 blue: (238.0)/255.0 alpha: 1.0]
#define myColorOldlace [UIColor colorWithRed: (253.0)/255.0 green: (245.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]
#define myColorIvory [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (240.0)/255.0 alpha: 1.0]
#define myColorHoneydew [UIColor colorWithRed: (240.0)/255.0 green: (255.0)/255.0 blue: (240.0)/255.0 alpha: 1.0]
#define myColorMintcream [UIColor colorWithRed: (245.0)/255.0 green: (255.0)/255.0 blue: (250.0)/255.0 alpha: 1.0]
#define myColorAzure [UIColor colorWithRed: (240.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorAliceblue [UIColor colorWithRed: (240.0)/255.0 green: (248.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorLavender [UIColor colorWithRed: (230.0)/255.0 green: (230.0)/255.0 blue: (250.0)/255.0 alpha: 1.0]
#define myColorLightsteelblue [UIColor colorWithRed: (176.0)/255.0 green: (196.0)/255.0 blue: (222.0)/255.0 alpha: 1.0]
#define myColorLightslategray [UIColor colorWithRed: (119.0)/255.0 green: (136.0)/255.0 blue: (153.0)/255.0 alpha: 1.0]
#define myColorSlategray [UIColor colorWithRed: (112.0)/255.0 green: (128.0)/255.0 blue: (144.0)/255.0 alpha: 1.0]
#define myColorSteelblue [UIColor colorWithRed: (70.0)/255.0 green: (130.0)/255.0 blue: (180.0)/255.0 alpha: 1.0]
#define myColorRoyalblue [UIColor colorWithRed: (65.0)/255.0 green: (105.0)/255.0 blue: (225.0)/255.0 alpha: 1.0]
#define myColorMidnightblue [UIColor colorWithRed: (25.0)/255.0 green: (25.0)/255.0 blue: (112.0)/255.0 alpha: 1.0]
#define myColorNavy [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]
#define myColorDarkblue [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (139.0)/255.0 alpha: 1.0]
#define myColorMediumblue [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]
#define myColorBlue [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorDodgerblue [UIColor colorWithRed: (30.0)/255.0 green: (144.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorCornflowerblue [UIColor colorWithRed: (100.0)/255.0 green: (149.0)/255.0 blue: (237.0)/255.0 alpha: 1.0]
#define myColorDeepskyblue [UIColor colorWithRed: (0.0)/255.0 green: (191.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorLightskyblue [UIColor colorWithRed: (135.0)/255.0 green: (206.0)/255.0 blue: (250.0)/255.0 alpha: 1.0]
#define myColorSkyblue [UIColor colorWithRed: (135.0)/255.0 green: (206.0)/255.0 blue: (235.0)/255.0 alpha: 1.0]
#define myColorLightblue [UIColor colorWithRed: (173.0)/255.0 green: (216.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]
#define myColorPowderblue [UIColor colorWithRed: (176.0)/255.0 green: (224.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]
#define myColorPaleturquoise [UIColor colorWithRed: (175.0)/255.0 green: (238.0)/255.0 blue: (238.0)/255.0 alpha: 1.0]
#define myColorLightcyan [UIColor colorWithRed: (224.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorCyan [UIColor colorWithRed: (0.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorAqua [UIColor colorWithRed: (0.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorTurquoise [UIColor colorWithRed: (64.0)/255.0 green: (224.0)/255.0 blue: (208.0)/255.0 alpha: 1.0]
#define myColorMediumturquoise [UIColor colorWithRed: (72.0)/255.0 green: (209.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]
#define myColorDarkturquoise [UIColor colorWithRed: (0.0)/255.0 green: (206.0)/255.0 blue: (209.0)/255.0 alpha: 1.0]
#define myColorLightseagreen [UIColor colorWithRed: (32.0)/255.0 green: (178.0)/255.0 blue: (170.0)/255.0 alpha: 1.0]
#define myColorCadetblue [UIColor colorWithRed: (95.0)/255.0 green: (158.0)/255.0 blue: (160.0)/255.0 alpha: 1.0]
#define myColorDarkcyan [UIColor colorWithRed: (0.0)/255.0 green: (139.0)/255.0 blue: (139.0)/255.0 alpha: 1.0]
#define myColorTeal [UIColor colorWithRed: (0.0)/255.0 green: (128.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]
#define myColorDarkslategray [UIColor colorWithRed: (47.0)/255.0 green: (79.0)/255.0 blue: (79.0)/255.0 alpha: 1.0]
#define myColorDarkgreen [UIColor colorWithRed: (0.0)/255.0 green: (100.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorGreen [UIColor colorWithRed: (0.0)/255.0 green: (128.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorForestgreen [UIColor colorWithRed: (34.0)/255.0 green: (139.0)/255.0 blue: (34.0)/255.0 alpha: 1.0]
#define myColorSeagreen [UIColor colorWithRed: (46.0)/255.0 green: (139.0)/255.0 blue: (87.0)/255.0 alpha: 1.0]
#define myColorMediumseagreen [UIColor colorWithRed: (60.0)/255.0 green: (179.0)/255.0 blue: (113.0)/255.0 alpha: 1.0]
#define myColorMediumaquamarine [UIColor colorWithRed: (102.0)/255.0 green: (205.0)/255.0 blue: (170.0)/255.0 alpha: 1.0]
#define myColorDarkseagreen [UIColor colorWithRed: (143.0)/255.0 green: (188.0)/255.0 blue: (143.0)/255.0 alpha: 1.0]
#define myColorAquamarine [UIColor colorWithRed: (127.0)/255.0 green: (255.0)/255.0 blue: (212.0)/255.0 alpha: 1.0]
#define myColorPalegreen [UIColor colorWithRed: (152.0)/255.0 green: (251.0)/255.0 blue: (152.0)/255.0 alpha: 1.0]
#define myColorLightgreen [UIColor colorWithRed: (144.0)/255.0 green: (238.0)/255.0 blue: (144.0)/255.0 alpha: 1.0]
#define myColorSpringgreen [UIColor colorWithRed: (0.0)/255.0 green: (255.0)/255.0 blue: (127.0)/255.0 alpha: 1.0]
#define myColorMediumspringgreen [UIColor colorWithRed: (0.0)/255.0 green: (250.0)/255.0 blue: (154.0)/255.0 alpha: 1.0]
#define myColorLawngreen [UIColor colorWithRed: (124.0)/255.0 green: (252.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorChartreuse [UIColor colorWithRed: (127.0)/255.0 green: (255.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorGreenyellow [UIColor colorWithRed: (173.0)/255.0 green: (255.0)/255.0 blue: (47.0)/255.0 alpha: 1.0]
#define myColorLime [UIColor colorWithRed: (0.0)/255.0 green: (255.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorLimegreen [UIColor colorWithRed: (50.0)/255.0 green: (205.0)/255.0 blue: (50.0)/255.0 alpha: 1.0]
#define myColorYellowgreen [UIColor colorWithRed: (154.0)/255.0 green: (205.0)/255.0 blue: (50.0)/255.0 alpha: 1.0]
#define myColorDarkolivegreen [UIColor colorWithRed: (85.0)/255.0 green: (107.0)/255.0 blue: (47.0)/255.0 alpha: 1.0]
#define myColorOlivedrab [UIColor colorWithRed: (107.0)/255.0 green: (142.0)/255.0 blue: (35.0)/255.0 alpha: 1.0]
#define myColorOlive [UIColor colorWithRed: (128.0)/255.0 green: (128.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorDarkkhaki [UIColor colorWithRed: (189.0)/255.0 green: (183.0)/255.0 blue: (107.0)/255.0 alpha: 1.0]
#define myColorPalegoldenrod [UIColor colorWithRed: (238.0)/255.0 green: (232.0)/255.0 blue: (170.0)/255.0 alpha: 1.0]
#define myColorCornsilk [UIColor colorWithRed: (255.0)/255.0 green: (248.0)/255.0 blue: (220.0)/255.0 alpha: 1.0]
#define myColorBeige [UIColor colorWithRed: (245.0)/255.0 green: (245.0)/255.0 blue: (220.0)/255.0 alpha: 1.0]
#define myColorLightyellow [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (224.0)/255.0 alpha: 1.0]
#define myColorLightgoldenrodyellow [UIColor colorWithRed: (250.0)/255.0 green: (250.0)/255.0 blue: (210.0)/255.0 alpha: 1.0]
#define myColorLemonchiffon [UIColor colorWithRed: (255.0)/255.0 green: (250.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]
#define myColorWheat [UIColor colorWithRed: (245.0)/255.0 green: (222.0)/255.0 blue: (179.0)/255.0 alpha: 1.0]
#define myColorBurlywood [UIColor colorWithRed: (222.0)/255.0 green: (184.0)/255.0 blue: (135.0)/255.0 alpha: 1.0]
#define myColorTan [UIColor colorWithRed: (210.0)/255.0 green: (180.0)/255.0 blue: (140.0)/255.0 alpha: 1.0]
#define myColorKhaki [UIColor colorWithRed: (240.0)/255.0 green: (230.0)/255.0 blue: (140.0)/255.0 alpha: 1.0]
#define myColorYellow [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorGold [UIColor colorWithRed: (255.0)/255.0 green: (215.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorOrange [UIColor colorWithRed: (255.0)/255.0 green: (165.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorSandybrown [UIColor colorWithRed: (244.0)/255.0 green: (164.0)/255.0 blue: (96.0)/255.0 alpha: 1.0]
#define myColorDarkorange [UIColor colorWithRed: (255.0)/255.0 green: (140.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorGoldenrod [UIColor colorWithRed: (218.0)/255.0 green: (165.0)/255.0 blue: (32.0)/255.0 alpha: 1.0]
#define myColorPeru [UIColor colorWithRed: (205.0)/255.0 green: (133.0)/255.0 blue: (63.0)/255.0 alpha: 1.0]
#define myColorDarkgoldenrod [UIColor colorWithRed: (184.0)/255.0 green: (134.0)/255.0 blue: (11.0)/255.0 alpha: 1.0]
#define myColorChocolate [UIColor colorWithRed: (210.0)/255.0 green: (105.0)/255.0 blue: (30.0)/255.0 alpha: 1.0]
#define myColorSienna [UIColor colorWithRed: (160.0)/255.0 green: (82.0)/255.0 blue: (45.0)/255.0 alpha: 1.0]
#define myColorSaddlebrown [UIColor colorWithRed: (139.0)/255.0 green: (69.0)/255.0 blue: (19.0)/255.0 alpha: 1.0]
#define myColorMaroon [UIColor colorWithRed: (128.0)/255.0 green: (0.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorDarkred [UIColor colorWithRed: (139.0)/255.0 green: (0.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorBrown [UIColor colorWithRed: (165.0)/255.0 green: (42.0)/255.0 blue: (42.0)/255.0 alpha: 1.0]
#define myColorFirebrick [UIColor colorWithRed: (178.0)/255.0 green: (34.0)/255.0 blue: (34.0)/255.0 alpha: 1.0]
#define myColorIndianred [UIColor colorWithRed: (205.0)/255.0 green: (92.0)/255.0 blue: (92.0)/255.0 alpha: 1.0]
#define myColorRosybrown [UIColor colorWithRed: (188.0)/255.0 green: (143.0)/255.0 blue: (143.0)/255.0 alpha: 1.0]
#define myColorDarksalmon [UIColor colorWithRed: (233.0)/255.0 green: (150.0)/255.0 blue: (122.0)/255.0 alpha: 1.0]
#define myColorLightcoral [UIColor colorWithRed: (240.0)/255.0 green: (128.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]
#define myColorSalmon [UIColor colorWithRed: (250.0)/255.0 green: (128.0)/255.0 blue: (114.0)/255.0 alpha: 1.0]
#define myColorLightsalmon [UIColor colorWithRed: (255.0)/255.0 green: (160.0)/255.0 blue: (122.0)/255.0 alpha: 1.0]
#define myColorCoral [UIColor colorWithRed: (255.0)/255.0 green: (127.0)/255.0 blue: (80.0)/255.0 alpha: 1.0]
#define myColorTomato [UIColor colorWithRed: (255.0)/255.0 green: (99.0)/255.0 blue: (71.0)/255.0 alpha: 1.0]
#define myColorOrangered [UIColor colorWithRed: (255.0)/255.0 green: (69.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorRed [UIColor colorWithRed: (255.0)/255.0 green: (0.0)/255.0 blue: (0.0)/255.0 alpha: 1.0]
#define myColorCrimson [UIColor colorWithRed: (220.0)/255.0 green: (20.0)/255.0 blue: (60.0)/255.0 alpha: 1.0]
#define myColorMediumvioletred [UIColor colorWithRed: (199.0)/255.0 green: (21.0)/255.0 blue: (133.0)/255.0 alpha: 1.0]
#define myColorDeeppink [UIColor colorWithRed: (255.0)/255.0 green: (20.0)/255.0 blue: (147.0)/255.0 alpha: 1.0]
#define myColorHotpink [UIColor colorWithRed: (255.0)/255.0 green: (105.0)/255.0 blue: (180.0)/255.0 alpha: 1.0]
#define myColorPalevioletred [UIColor colorWithRed: (219.0)/255.0 green: (112.0)/255.0 blue: (147.0)/255.0 alpha: 1.0]
#define myColorPink [UIColor colorWithRed: (255.0)/255.0 green: (192.0)/255.0 blue: (203.0)/255.0 alpha: 1.0]
#define myColorLightpink [UIColor colorWithRed: (255.0)/255.0 green: (182.0)/255.0 blue: (193.0)/255.0 alpha: 1.0]
#define myColorThistle [UIColor colorWithRed: (216.0)/255.0 green: (191.0)/255.0 blue: (216.0)/255.0 alpha: 1.0]
#define myColorMagenta [UIColor colorWithRed: (255.0)/255.0 green: (0.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorFuchsia [UIColor colorWithRed: (255.0)/255.0 green: (0.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]
#define myColorViolet [UIColor colorWithRed: (238.0)/255.0 green: (130.0)/255.0 blue: (238.0)/255.0 alpha: 1.0]
#define myColorPlum [UIColor colorWithRed: (221.0)/255.0 green: (160.0)/255.0 blue: (221.0)/255.0 alpha: 1.0]
#define myColorOrchid [UIColor colorWithRed: (218.0)/255.0 green: (112.0)/255.0 blue: (214.0)/255.0 alpha: 1.0]
#define myColorMediumorchid [UIColor colorWithRed: (186.0)/255.0 green: (85.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]
#define myColorDarkorchid [UIColor colorWithRed: (153.0)/255.0 green: (50.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]
#define myColorDarkviolet [UIColor colorWithRed: (148.0)/255.0 green: (0.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]
#define myColorDarkmagenta [UIColor colorWithRed: (139.0)/255.0 green: (0.0)/255.0 blue: (139.0)/255.0 alpha: 1.0]
#define myColorPurple [UIColor colorWithRed: (128.0)/255.0 green: (0.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]
#define myColorIndigo [UIColor colorWithRed: (75.0)/255.0 green: (0.0)/255.0 blue: (130.0)/255.0 alpha: 1.0]
#define myColorDarkslateblue [UIColor colorWithRed: (72.0)/255.0 green: (61.0)/255.0 blue: (139.0)/255.0 alpha: 1.0]
#define myColorBlueviolet [UIColor colorWithRed: (138.0)/255.0 green: (43.0)/255.0 blue: (226.0)/255.0 alpha: 1.0]
#define myColorMediumpurple [UIColor colorWithRed: (147.0)/255.0 green: (112.0)/255.0 blue: (219.0)/255.0 alpha: 1.0]
#define myColorSlateblue [UIColor colorWithRed: (106.0)/255.0 green: (90.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]
#define myColorMediumslateblue [UIColor colorWithRed: (123.0)/255.0 green: (104.0)/255.0 blue: (238.0)/255.0 alpha: 1.0]
/** 洋色サンプル */
/** http://www.colordic.org/y/ */

#define myColorCoralRed [UIColor colorWithRed: (239.0)/255.0 green: (133.0)/255.0 blue: (125.0)/255.0 alpha: 1.0]   //コーラルレッド
#define myColorPoppyRed [UIColor colorWithRed: (234.0)/255.0 green: (85.0)/255.0 blue: (80.0)/255.0 alpha: 1.0] //ポピーレッド
#define myColorRed  [UIColor colorWithRed: (234.0)/255.0 green: (85.0)/255.0 blue: (80.0)/255.0 alpha: 1.0] //レッド
#define myColorTomatoRed    [UIColor colorWithRed: (234.0)/255.0 green: (85.0)/255.0 blue: (73.0)/255.0 alpha: 1.0] //トマトレッド
#define myColorVermilion    [UIColor colorWithRed: (234.0)/255.0 green: (85.0)/255.0 blue: (58.0)/255.0 alpha: 1.0] //バーミリオン
#define myColorScarlet  [UIColor colorWithRed: (234.0)/255.0 green: (85.0)/255.0 blue: (50.0)/255.0 alpha: 1.0] //スカーレット
#define myColorCarrotOrange [UIColor colorWithRed: (237.0)/255.0 green: (109.0)/255.0 blue: (53.0)/255.0 alpha: 1.0]    //キャロットオレンジ
#define myColorChineseRed   [UIColor colorWithRed: (237.0)/255.0 green: (109.0)/255.0 blue: (70.0)/255.0 alpha: 1.0]    //チャイニーズレッド
#define myColorTerracotta   [UIColor colorWithRed: (189.0)/255.0 green: (104.0)/255.0 blue: (86.0)/255.0 alpha: 1.0]    //テラコッタ
#define myColorCocoaBrown   [UIColor colorWithRed: (152.0)/255.0 green: (96.0)/255.0 blue: (94.0)/255.0 alpha: 1.0] //ココアブラウン
#define myColorMahogany [UIColor colorWithRed: (107.0)/255.0 green: (63.0)/255.0 blue: (49.0)/255.0 alpha: 1.0] //マホガニー
#define myColorChocolate    [UIColor colorWithRed: (108.0)/255.0 green: (53.0)/255.0 blue: (36.0)/255.0 alpha: 1.0] //チョコレート
#define myColorMarron   [UIColor colorWithRed: (106.0)/255.0 green: (25.0)/255.0 blue: (23.0)/255.0 alpha: 1.0] //マルーン
#define myColorSepia    [UIColor colorWithRed: (98.0)/255.0 green: (45.0)/255.0 blue: (24.0)/255.0 alpha: 1.0]  //セピア
#define myColorCoffee   [UIColor colorWithRed: (123.0)/255.0 green: (85.0)/255.0 blue: (68.0)/255.0 alpha: 1.0] //コーヒー色
#define myColorBrown    [UIColor colorWithRed: (143.0)/255.0 green: (101.0)/255.0 blue: (82.0)/255.0 alpha: 1.0]    //ブラウン
#define myColorBurntSienna  [UIColor colorWithRed: (187.0)/255.0 green: (85.0)/255.0 blue: (53.0)/255.0 alpha: 1.0] //バーントシェンナ
#define myColorAmberRose    [UIColor colorWithRed: (230.0)/255.0 green: (191.0)/255.0 blue: (178.0)/255.0 alpha: 1.0]   //アンバーローズ
#define myColorBeigeRose    [UIColor colorWithRed: (232.0)/255.0 green: (211.0)/255.0 blue: (202.0)/255.0 alpha: 1.0]   //ベージュローゼ
#define myColorSalmonPink   [UIColor colorWithRed: (243.0)/255.0 green: (166.0)/255.0 blue: (140.0)/255.0 alpha: 1.0]   //サーモンピンク
#define myColorSahara   [UIColor colorWithRed: (226.0)/255.0 green: (150.0)/255.0 blue: (118.0)/255.0 alpha: 1.0]   //サハラ
#define myColorAshRose  [UIColor colorWithRed: (230.0)/255.0 green: (191.0)/255.0 blue: (171.0)/255.0 alpha: 1.0]   //アッシュローズ
#define myColorShellPink    [UIColor colorWithRed: (251.0)/255.0 green: (218.0)/255.0 blue: (200.0)/255.0 alpha: 1.0]   //シェルピンク
#define myColorBabyPink [UIColor colorWithRed: (253.0)/255.0 green: (237.0)/255.0 blue: (228.0)/255.0 alpha: 1.0]   //ベビーピンク
#define myColorNailPink [UIColor colorWithRed: (252.0)/255.0 green: (228.0)/255.0 blue: (214.0)/255.0 alpha: 1.0]   //ネールピンク
#define myColorRawSienna    [UIColor colorWithRed: (225.0)/255.0 green: (123.0)/255.0 blue: (52.0)/255.0 alpha: 1.0]    //ローシェンナ
#define myColorCaramel  [UIColor colorWithRed: (188.0)/255.0 green: (97.0)/255.0 blue: (30.0)/255.0 alpha: 1.0] //キャラメル
#define myColorSunset   [UIColor colorWithRed: (246.0)/255.0 green: (180.0)/255.0 blue: (131.0)/255.0 alpha: 1.0]   //サンセット
#define myColorCinnamon [UIColor colorWithRed: (190.0)/255.0 green: (143.0)/255.0 blue: (104.0)/255.0 alpha: 1.0]   //シナモン
#define myColorTan  [UIColor colorWithRed: (191.0)/255.0 green: (120.0)/255.0 blue: (62.0)/255.0 alpha: 1.0]    //タン
#define myColorChampagne    [UIColor colorWithRed: (233.0)/255.0 green: (218.0)/255.0 blue: (203.0)/255.0 alpha: 1.0]   //シャンパン
#define myColorPeach    [UIColor colorWithRed: (251.0)/255.0 green: (216.0)/255.0 blue: (181.0)/255.0 alpha: 1.0]   //ピーチ
#define myColorCafeAuLait   [UIColor colorWithRed: (148.0)/255.0 green: (108.0)/255.0 blue: (69.0)/255.0 alpha: 1.0]    //カフェオレ
#define myColorOrange   [UIColor colorWithRed: (238.0)/255.0 green: (120.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //オレンジ
#define myColorApricot  [UIColor colorWithRed: (247.0)/255.0 green: (185.0)/255.0 blue: (119.0)/255.0 alpha: 1.0]   //アプリコット
#define myColorAmber    [UIColor colorWithRed: (194.0)/255.0 green: (137.0)/255.0 blue: (75.0)/255.0 alpha: 1.0]    //アンバー
#define myColorBronze   [UIColor colorWithRed: (172.0)/255.0 green: (107.0)/255.0 blue: (37.0)/255.0 alpha: 1.0]    //ブロンズ
#define myColorVanilla  [UIColor colorWithRed: (232.0)/255.0 green: (197.0)/255.0 blue: (156.0)/255.0 alpha: 1.0]   //ヴァニラ
#define myColorCork [UIColor colorWithRed: (196.0)/255.0 green: (154.0)/255.0 blue: (106.0)/255.0 alpha: 1.0]   //コルク
#define myColorBurntUmber   [UIColor colorWithRed: (111.0)/255.0 green: (84.0)/255.0 blue: (54.0)/255.0 alpha: 1.0] //バーントアンバー
#define myColorRawUmber [UIColor colorWithRed: (134.0)/255.0 green: (102.0)/255.0 blue: (41.0)/255.0 alpha: 1.0]    //ローアンバー
#define myColorFlesh    [UIColor colorWithRed: (250.0)/255.0 green: (208.0)/255.0 blue: (158.0)/255.0 alpha: 1.0]   //フレッシュ
#define myColorGoldenYellow [UIColor colorWithRed: (246.0)/255.0 green: (174.0)/255.0 blue: (84.0)/255.0 alpha: 1.0]    //ゴールデンイエロー
#define myColorMandarinOrange   [UIColor colorWithRed: (243.0)/255.0 green: (152.0)/255.0 blue: (29.0)/255.0 alpha: 1.0]    //マンダリンオレンジ
#define myColorMarigold [UIColor colorWithRed: (243.0)/255.0 green: (152.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //マリーゴールド
#define myColorEcruBeige    [UIColor colorWithRed: (246.0)/255.0 green: (229.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]   //エクルベージュ
#define myColorOyster   [UIColor colorWithRed: (234.0)/255.0 green: (225.0)/255.0 blue: (207.0)/255.0 alpha: 1.0]   //オイスター
#define myColorOchre    [UIColor colorWithRed: (186.0)/255.0 green: (139.0)/255.0 blue: (64.0)/255.0 alpha: 1.0]    //オーカー
#define myColorKhaki    [UIColor colorWithRed: (197.0)/255.0 green: (160.0)/255.0 blue: (90.0)/255.0 alpha: 1.0]    //カーキー
#define myColorBuff [UIColor colorWithRed: (202.0)/255.0 green: (172.0)/255.0 blue: (113.0)/255.0 alpha: 1.0]   //バフ
#define myColorSaffronYellow    [UIColor colorWithRed: (250.0)/255.0 green: (197.0)/255.0 blue: (89.0)/255.0 alpha: 1.0]    //サフランイエロー
#define myColorPumpkin  [UIColor colorWithRed: (229.0)/255.0 green: (163.0)/255.0 blue: (35.0)/255.0 alpha: 1.0]    //パンプキン
#define myColorYellowOcher  [UIColor colorWithRed: (196.0)/255.0 green: (151.0)/255.0 blue: (47.0)/255.0 alpha: 1.0]    //イエローオーカー
#define myColorBlond    [UIColor colorWithRed: (242.0)/255.0 green: (213.0)/255.0 blue: (138.0)/255.0 alpha: 1.0]   //ブロンド
#define myColorBeige    [UIColor colorWithRed: (238.0)/255.0 green: (220.0)/255.0 blue: (179.0)/255.0 alpha: 1.0]   //ベージュ
#define myColorBiscuit  [UIColor colorWithRed: (234.0)/255.0 green: (215.0)/255.0 blue: (164.0)/255.0 alpha: 1.0]   //ビスケット
#define myColorLeghorn  [UIColor colorWithRed: (255.0)/255.0 green: (233.0)/255.0 blue: (169.0)/255.0 alpha: 1.0]   //レグホーン
#define myColorSunshineYellow   [UIColor colorWithRed: (255.0)/255.0 green: (237.0)/255.0 blue: (171.0)/255.0 alpha: 1.0]   //サンシャインイエロー
#define myColorCreamYellow  [UIColor colorWithRed: (255.0)/255.0 green: (243.0)/255.0 blue: (184.0)/255.0 alpha: 1.0]   //クリームイエロー
#define myColorNaplesYellow [UIColor colorWithRed: (253.0)/255.0 green: (211.0)/255.0 blue: (92.0)/255.0 alpha: 1.0]    //ネープルスイエロー
#define myColorTopaz    [UIColor colorWithRed: (233.0)/255.0 green: (188.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //トパーズ
#define myColorChromeYellow [UIColor colorWithRed: (252.0)/255.0 green: (200.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //クロムイエロー
#define myColorCream    [UIColor colorWithRed: (227.0)/255.0 green: (215.0)/255.0 blue: (163.0)/255.0 alpha: 1.0]   //クリーム
#define myColorStraw    [UIColor colorWithRed: (236.0)/255.0 green: (224.0)/255.0 blue: (147.0)/255.0 alpha: 1.0]   //ストロー
#define myColorJasmineYellow    [UIColor colorWithRed: (237.0)/255.0 green: (222.0)/255.0 blue: (123.0)/255.0 alpha: 1.0]   //ジャスミンイエロー
#define myColorAntiqueGold  [UIColor colorWithRed: (193.0)/255.0 green: (171.0)/255.0 blue: (5.0)/255.0 alpha: 1.0] //アンティックゴールド
#define myColorOlive    [UIColor colorWithRed: (114.0)/255.0 green: (100.0)/255.0 blue: (12.0)/255.0 alpha: 1.0]    //オリーブ
#define myColorOliveDrab    [UIColor colorWithRed: (102.0)/255.0 green: (90.0)/255.0 blue: (26.0)/255.0 alpha: 1.0] //オリーブドラブ
#define myColorJauneBrillant    [UIColor colorWithRed: (255.0)/255.0 green: (220.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //ジョンブリアン
#define myColorYellow   [UIColor colorWithRed: (255.0)/255.0 green: (220.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //イエロー
#define myColorCitrus   [UIColor colorWithRed: (237.0)/255.0 green: (220.0)/255.0 blue: (68.0)/255.0 alpha: 1.0]    //シトラス
#define myColorLimelight    [UIColor colorWithRed: (255.0)/255.0 green: (247.0)/255.0 blue: (153.0)/255.0 alpha: 1.0]   //ライムライト
#define myColorCanaryYellow [UIColor colorWithRed: (255.0)/255.0 green: (244.0)/255.0 blue: (98.0)/255.0 alpha: 1.0]    //カナリヤ
#define myColorMimosa   [UIColor colorWithRed: (255.0)/255.0 green: (244.0)/255.0 blue: (98.0)/255.0 alpha: 1.0]    //ミモザ
#define myColorLemonYellow  [UIColor colorWithRed: (255.0)/255.0 green: (243.0)/255.0 blue: (82.0)/255.0 alpha: 1.0]    //レモンイエロー
#define myColorMelonYellow  [UIColor colorWithRed: (224.0)/255.0 green: (222.0)/255.0 blue: (148.0)/255.0 alpha: 1.0]   //メロンイエロー
#define myColorChartreuseYellow [UIColor colorWithRed: (227.0)/255.0 green: (229.0)/255.0 blue: (72.0)/255.0 alpha: 1.0]    //シャルトルーズイエロー
#define myColorLimeYellow   [UIColor colorWithRed: (234.0)/255.0 green: (238.0)/255.0 blue: (162.0)/255.0 alpha: 1.0]   //ライムイエロー
#define myColorLimeGreen    [UIColor colorWithRed: (230.0)/255.0 green: (235.0)/255.0 blue: (148.0)/255.0 alpha: 1.0]   //ライムグリーン
#define myColorChartreuseGreen  [UIColor colorWithRed: (217.0)/255.0 green: (227.0)/255.0 blue: (103.0)/255.0 alpha: 1.0]   //シャトルーズグリーン
#define myColorLettuceGreen [UIColor colorWithRed: (209.0)/255.0 green: (222.0)/255.0 blue: (76.0)/255.0 alpha: 1.0]    //レタスグリーン
#define myColorOliveGreen   [UIColor colorWithRed: (95.0)/255.0 green: (101.0)/255.0 blue: (39.0)/255.0 alpha: 1.0] //オリーブグリーン
#define myColorMossGreen    [UIColor colorWithRed: (119.0)/255.0 green: (126.0)/255.0 blue: (65.0)/255.0 alpha: 1.0]    //モスグリーン
#define myColorGrassGreen   [UIColor colorWithRed: (123.0)/255.0 green: (141.0)/255.0 blue: (66.0)/255.0 alpha: 1.0]    //グラスグリーン
#define myColorSpringGreen  [UIColor colorWithRed: (156.0)/255.0 green: (187.0)/255.0 blue: (28.0)/255.0 alpha: 1.0]    //スプリンググリーン
#define myColorLeafGreen    [UIColor colorWithRed: (159.0)/255.0 green: (194.0)/255.0 blue: (77.0)/255.0 alpha: 1.0]    //リーフグリーン
#define myColorWhiteLily    [UIColor colorWithRed: (240.0)/255.0 green: (246.0)/255.0 blue: (218.0)/255.0 alpha: 1.0]   //ホワイトリリー
#define myColorAsparagusGreen   [UIColor colorWithRed: (219.0)/255.0 green: (235.0)/255.0 blue: (196.0)/255.0 alpha: 1.0]   //アスパラガスグリーン
#define myColorCitronGreen  [UIColor colorWithRed: (97.0)/255.0 green: (142.0)/255.0 blue: (52.0)/255.0 alpha: 1.0] //シトロングリーン
#define myColorMeadowGreen  [UIColor colorWithRed: (101.0)/255.0 green: (171.0)/255.0 blue: (49.0)/255.0 alpha: 1.0]    //メドウグリーン
#define myColorAppleGreen   [UIColor colorWithRed: (167.0)/255.0 green: (210.0)/255.0 blue: (141.0)/255.0 alpha: 1.0]   //アップルグリーン
#define myColorIvyGreen [UIColor colorWithRed: (87.0)/255.0 green: (138.0)/255.0 blue: (61.0)/255.0 alpha: 1.0] //アイビーグリーン
#define myColorSpinachGreen [UIColor colorWithRed: (65.0)/255.0 green: (112.0)/255.0 blue: (56.0)/255.0 alpha: 1.0] //スピナッチグリーン
#define myColorCactus   [UIColor colorWithRed: (56.0)/255.0 green: (125.0)/255.0 blue: (57.0)/255.0 alpha: 1.0] //カクタス
#define myColorSkyGreen [UIColor colorWithRed: (190.0)/255.0 green: (224.0)/255.0 blue: (194.0)/255.0 alpha: 1.0]   //スカイグリーン
#define myColorSpearmint    [UIColor colorWithRed: (121.0)/255.0 green: (192.0)/255.0 blue: (110.0)/255.0 alpha: 1.0]   //スペアミント
#define myColorMintGreen    [UIColor colorWithRed: (137.0)/255.0 green: (201.0)/255.0 blue: (151.0)/255.0 alpha: 1.0]   //ミントグリーン
#define myColorParrotGreen  [UIColor colorWithRed: (55.0)/255.0 green: (163.0)/255.0 blue: (74.0)/255.0 alpha: 1.0] //パロットグリーン
#define myColorSummerGreen  [UIColor colorWithRed: (0.0)/255.0 green: (153.0)/255.0 blue: (68.0)/255.0 alpha: 1.0]  //サマーグリーン
#define myColorOpalGreen    [UIColor colorWithRed: (190.0)/255.0 green: (224.0)/255.0 blue: (206.0)/255.0 alpha: 1.0]   //オパールグリーン
#define myColorSprayGreen   [UIColor colorWithRed: (164.0)/255.0 green: (213.0)/255.0 blue: (189.0)/255.0 alpha: 1.0]   //スプレイグリーン
#define myColorBottleGreen  [UIColor colorWithRed: (0.0)/255.0 green: (77.0)/255.0 blue: (37.0)/255.0 alpha: 1.0]   //ボトルグリーン
#define myColorCobaltGreen  [UIColor colorWithRed: (60.0)/255.0 green: (179.0)/255.0 blue: (122.0)/255.0 alpha: 1.0]    //コバルトグリーン
#define myColorEvergreen    [UIColor colorWithRed: (0.0)/255.0 green: (152.0)/255.0 blue: (79.0)/255.0 alpha: 1.0]  //エバーグリーン
#define myColorMalachiteGreen   [UIColor colorWithRed: (0.0)/255.0 green: (152.0)/255.0 blue: (84.0)/255.0 alpha: 1.0]  //マラカイトグリーン
#define myColorGreen    [UIColor colorWithRed: (0.0)/255.0 green: (169.0)/255.0 blue: (96.0)/255.0 alpha: 1.0]  //グリーン
#define myColorEmeraldGreen [UIColor colorWithRed: (0.0)/255.0 green: (169.0)/255.0 blue: (104.0)/255.0 alpha: 1.0] //エメラルドグリーン
#define myColorForestGreen  [UIColor colorWithRed: (40.0)/255.0 green: (140.0)/255.0 blue: (102.0)/255.0 alpha: 1.0]    //フォレストグリーン
#define myColorViridian [UIColor colorWithRed: (0.0)/255.0 green: (136.0)/255.0 blue: (90.0)/255.0 alpha: 1.0]  //ビリジアン
#define myColorHollyGreen   [UIColor colorWithRed: (0.0)/255.0 green: (105.0)/255.0 blue: (72.0)/255.0 alpha: 1.0]  //ホーリーグリーン
#define myColorBilliardGreen    [UIColor colorWithRed: (0.0)/255.0 green: (92.0)/255.0 blue: (66.0)/255.0 alpha: 1.0]   //ビリヤードグリーン
#define myColorChromeGreen  [UIColor colorWithRed: (0.0)/255.0 green: (83.0)/255.0 blue: (63.0)/255.0 alpha: 1.0]   //クロムグリーン
#define myColorAntiqueGreen [UIColor colorWithRed: (84.0)/255.0 green: (145.0)/255.0 blue: (127.0)/255.0 alpha: 1.0]    //アンティークグリーン
#define myColorWaterGreen   [UIColor colorWithRed: (165.0)/255.0 green: (201.0)/255.0 blue: (193.0)/255.0 alpha: 1.0]   //ウォーターグリーン
#define myColorIceGreen [UIColor colorWithRed: (163.0)/255.0 green: (214.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]   //アイスグリーン
#define myColorTurquoiseGreen   [UIColor colorWithRed: (0.0)/255.0 green: (148.0)/255.0 blue: (122.0)/255.0 alpha: 1.0] //ターコイズグリーン
#define myColorSeaGreen [UIColor colorWithRed: (0.0)/255.0 green: (172.0)/255.0 blue: (151.0)/255.0 alpha: 1.0] //シーグリーン
#define myColorPeppermintGreen  [UIColor colorWithRed: (0.0)/255.0 green: (172.0)/255.0 blue: (154.0)/255.0 alpha: 1.0] //ペパーミントグリーン
#define myColorPeacockGreen [UIColor colorWithRed: (0.0)/255.0 green: (164.0)/255.0 blue: (151.0)/255.0 alpha: 1.0] //ピーコックグリーン
#define myColorNileBlue [UIColor colorWithRed: (44.0)/255.0 green: (180.0)/255.0 blue: (173.0)/255.0 alpha: 1.0]    //ナイルブルー
#define myColorSaxeBlue [UIColor colorWithRed: (65.0)/255.0 green: (139.0)/255.0 blue: (137.0)/255.0 alpha: 1.0]    //サックスブルー
#define myColorSlateGreen   [UIColor colorWithRed: (60.0)/255.0 green: (113.0)/255.0 blue: (112.0)/255.0 alpha: 1.0]    //スレートグリーン
#define myColorTealGreen    [UIColor colorWithRed: (0.0)/255.0 green: (106.0)/255.0 blue: (108.0)/255.0 alpha: 1.0] //テールグリーン
#define myColorAquaGreen    [UIColor colorWithRed: (136.0)/255.0 green: (191.0)/255.0 blue: (191.0)/255.0 alpha: 1.0]   //アクアグリーン
#define myColorAquamarine   [UIColor colorWithRed: (103.0)/255.0 green: (181.0)/255.0 blue: (183.0)/255.0 alpha: 1.0]   //アクアマリン
#define myColorPeacockBlue  [UIColor colorWithRed: (0.0)/255.0 green: (158.0)/255.0 blue: (159.0)/255.0 alpha: 1.0] //ピーコックブルー
#define myColorTurquoise    [UIColor colorWithRed: (0.0)/255.0 green: (155.0)/255.0 blue: (159.0)/255.0 alpha: 1.0] //ターコイズ
#define myColorCapriBlue    [UIColor colorWithRed: (0.0)/255.0 green: (163.0)/255.0 blue: (167.0)/255.0 alpha: 1.0] //カプリブルー
#define myColorCambridgeBlue    [UIColor colorWithRed: (37.0)/255.0 green: (183.0)/255.0 blue: (192.0)/255.0 alpha: 1.0]    //ケンブリッジブルー
#define myColorTurquoiseBlue    [UIColor colorWithRed: (0.0)/255.0 green: (175.0)/255.0 blue: (204.0)/255.0 alpha: 1.0] //ターコイズブルー
#define myColorHorizonBlue  [UIColor colorWithRed: (130.0)/255.0 green: (205.0)/255.0 blue: (221.0)/255.0 alpha: 1.0]   //ホライズンブルー
#define myColorSummerShower [UIColor colorWithRed: (161.0)/255.0 green: (216.0)/255.0 blue: (226.0)/255.0 alpha: 1.0]   //サマーシャワー
#define myColorHorizonBlue2 [UIColor colorWithRed: (161.0)/255.0 green: (216.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]   //ホリゾンブルー
#define myColorCeruleanBlue [UIColor colorWithRed: (0.0)/255.0 green: (141.0)/255.0 blue: (183.0)/255.0 alpha: 1.0] //セルリアンブルー
#define myColorDuckBlue [UIColor colorWithRed: (0.0)/255.0 green: (113.0)/255.0 blue: (153.0)/255.0 alpha: 1.0] //ダックブルー
#define myColorMarineBlue   [UIColor colorWithRed: (0.0)/255.0 green: (104.0)/255.0 blue: (136.0)/255.0 alpha: 1.0] //マリンブルー
#define myColorMadonnaBlue  [UIColor colorWithRed: (0.0)/255.0 green: (96.0)/255.0 blue: (141.0)/255.0 alpha: 1.0]  //マドンナブルー
#define myColorEgyptianBlue [UIColor colorWithRed: (0.0)/255.0 green: (115.0)/255.0 blue: (168.0)/255.0 alpha: 1.0] //エジプシャンブルー
#define myColorBabyBlue [UIColor colorWithRed: (187.0)/255.0 green: (226.0)/255.0 blue: (241.0)/255.0 alpha: 1.0]   //ベビーブルー
#define myColorSkyBlue  [UIColor colorWithRed: (160.0)/255.0 green: (216.0)/255.0 blue: (239.0)/255.0 alpha: 1.0]   //スカイブルー
#define myColorShadowBlue   [UIColor colorWithRed: (113.0)/255.0 green: (155.0)/255.0 blue: (173.0)/255.0 alpha: 1.0]   //シャドウブルー
#define myColorCyan [UIColor colorWithRed: (0.0)/255.0 green: (161.0)/255.0 blue: (233.0)/255.0 alpha: 1.0] //シアン
#define myColorYachtBlue    [UIColor colorWithRed: (64.0)/255.0 green: (158.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]    //ヨットブルー
#define myColorChalkBlue    [UIColor colorWithRed: (104.0)/255.0 green: (169.0)/255.0 blue: (207.0)/255.0 alpha: 1.0]   //チョークブルー
#define myColorPigeonBlue   [UIColor colorWithRed: (136.0)/255.0 green: (181.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]   //ピジョンブルー
#define myColorSmokeBlue    [UIColor colorWithRed: (164.0)/255.0 green: (193.0)/255.0 blue: (215.0)/255.0 alpha: 1.0]   //スモークブルー
#define myColorFrostyBlue   [UIColor colorWithRed: (187.0)/255.0 green: (219.0)/255.0 blue: (243.0)/255.0 alpha: 1.0]   //フロスティブルー
#define myColorBleuAcide    [UIColor colorWithRed: (0.0)/255.0 green: (110.0)/255.0 blue: (176.0)/255.0 alpha: 1.0] //ブルーアシード
#define myColorCobaltBlue   [UIColor colorWithRed: (0.0)/255.0 green: (104.0)/255.0 blue: (183.0)/255.0 alpha: 1.0] //コバルトブルー
#define myColorSapphireBlue [UIColor colorWithRed: (0.0)/255.0 green: (104.0)/255.0 blue: (183.0)/255.0 alpha: 1.0] //サファイアブルー
#define myColorSpectrumBlue [UIColor colorWithRed: (0.0)/255.0 green: (117.0)/255.0 blue: (194.0)/255.0 alpha: 1.0] //スペクトラムブルー
#define myColorBlue [UIColor colorWithRed: (0.0)/255.0 green: (117.0)/255.0 blue: (194.0)/255.0 alpha: 1.0] //ブルー
#define myColorZenithBlue   [UIColor colorWithRed: (68.0)/255.0 green: (150.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]    //ゼニスブルー
#define myColorHeavenlyBlue [UIColor colorWithRed: (104.0)/255.0 green: (164.0)/255.0 blue: (217.0)/255.0 alpha: 1.0]   //ヘブンリーブルー
#define myColorOrchidGray   [UIColor colorWithRed: (188.0)/255.0 green: (199.0)/255.0 blue: (215.0)/255.0 alpha: 1.0]   //オーキッドグレイ
#define myColorPowderBlue   [UIColor colorWithRed: (188.0)/255.0 green: (205.0)/255.0 blue: (219.0)/255.0 alpha: 1.0]   //パウダーブルー
#define myColorLightBlue    [UIColor colorWithRed: (178.0)/255.0 green: (203.0)/255.0 blue: (228.0)/255.0 alpha: 1.0]   //ライトブルー
#define myColorBabyBlue2    [UIColor colorWithRed: (162.0)/255.0 green: (194.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]   //ベイビーブルー
#define myColorDayDream [UIColor colorWithRed: (163.0)/255.0 green: (185.0)/255.0 blue: (224.0)/255.0 alpha: 1.0]   //デイドリーム
#define myColorSalviaBlue   [UIColor colorWithRed: (148.0)/255.0 green: (173.0)/255.0 blue: (218.0)/255.0 alpha: 1.0]   //サルビアブルー
#define myColorHyacinthBlue [UIColor colorWithRed: (122.0)/255.0 green: (153.0)/255.0 blue: (207.0)/255.0 alpha: 1.0]   //ヒヤシンスブルー
#define myColorHyacinth [UIColor colorWithRed: (108.0)/255.0 green: (155.0)/255.0 blue: (210.0)/255.0 alpha: 1.0]   //ヒヤシンス
#define myColorMidnightBlue [UIColor colorWithRed: (0.0)/255.0 green: (30.0)/255.0 blue: (67.0)/255.0 alpha: 1.0]   //ミッドナイトブルー
#define myColorNavyBlue [UIColor colorWithRed: (32.0)/255.0 green: (47.0)/255.0 blue: (85.0)/255.0 alpha: 1.0]  //ネービーブルー
#define myColorPrussianBlue [UIColor colorWithRed: (25.0)/255.0 green: (47.0)/255.0 blue: (96.0)/255.0 alpha: 1.0]  //プルシャンブルー
#define myColorIronBlue [UIColor colorWithRed: (25.0)/255.0 green: (47.0)/255.0 blue: (96.0)/255.0 alpha: 1.0]  //アイアンブルー
#define myColorIndigo   [UIColor colorWithRed: (4.0)/255.0 green: (60.0)/255.0 blue: (120.0)/255.0 alpha: 1.0]  //インディゴ
#define myColorInkBlue  [UIColor colorWithRed: (0.0)/255.0 green: (63.0)/255.0 blue: (142.0)/255.0 alpha: 1.0]  //インクブルー
#define myColorOrientalBlue [UIColor colorWithRed: (38.0)/255.0 green: (73.0)/255.0 blue: (157.0)/255.0 alpha: 1.0] //オリエンタルブルー
#define myColorUltramarineBlue  [UIColor colorWithRed: (71.0)/255.0 green: (83.0)/255.0 blue: (162.0)/255.0 alpha: 1.0] //ウルトラマリンブルー
#define myColorUltramarine  [UIColor colorWithRed: (67.0)/255.0 green: (77.0)/255.0 blue: (162.0)/255.0 alpha: 1.0] //ウルトラマリン
#define myColorWistaria [UIColor colorWithRed: (141.0)/255.0 green: (147.0)/255.0 blue: (200.0)/255.0 alpha: 1.0]   //ウイスタリア
#define myColorBlueLavender [UIColor colorWithRed: (164.0)/255.0 green: (168.0)/255.0 blue: (212.0)/255.0 alpha: 1.0]   //ブルーラベンダー
#define myColorPannsy   [UIColor colorWithRed: (77.0)/255.0 green: (67.0)/255.0 blue: (152.0)/255.0 alpha: 1.0] //パンジー
#define myColorViolet   [UIColor colorWithRed: (90.0)/255.0 green: (68.0)/255.0 blue: (152.0)/255.0 alpha: 1.0] //バイオレット
#define myColorHeliotrope   [UIColor colorWithRed: (144.0)/255.0 green: (121.0)/255.0 blue: (182.0)/255.0 alpha: 1.0]   //ヘリオトロープ
#define myColorDeepRoyalPurple  [UIColor colorWithRed: (71.0)/255.0 green: (38.0)/255.0 blue: (110.0)/255.0 alpha: 1.0] //ディープロイヤルパープル
#define myColorGrape    [UIColor colorWithRed: (86.0)/255.0 green: (37.0)/255.0 blue: (110.0)/255.0 alpha: 1.0] //グレープ
#define myColorMauve    [UIColor colorWithRed: (145.0)/255.0 green: (93.0)/255.0 blue: (163.0)/255.0 alpha: 1.0]    //モーブ
#define myColorIris [UIColor colorWithRed: (199.0)/255.0 green: (165.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]   //アイリス
#define myColorLilac    [UIColor colorWithRed: (209.0)/255.0 green: (186.0)/255.0 blue: (218.0)/255.0 alpha: 1.0]   //ライラック
#define myColorLavender [UIColor colorWithRed: (202.0)/255.0 green: (184.0)/255.0 blue: (217.0)/255.0 alpha: 1.0]   //ラベンダー
#define myColorCrocus   [UIColor colorWithRed: (183.0)/255.0 green: (159.0)/255.0 blue: (203.0)/255.0 alpha: 1.0]   //クロッカス
#define myColorLavenderMauve    [UIColor colorWithRed: (166.0)/255.0 green: (136.0)/255.0 blue: (189.0)/255.0 alpha: 1.0]   //ラベンダーモーブ
#define myColorPurple   [UIColor colorWithRed: (155.0)/255.0 green: (114.0)/255.0 blue: (176.0)/255.0 alpha: 1.0]   //パープル
#define myColorRoyalPurple  [UIColor colorWithRed: (127.0)/255.0 green: (17.0)/255.0 blue: (132.0)/255.0 alpha: 1.0]    //ロイヤルパープル
#define myColorRaisin   [UIColor colorWithRed: (107.0)/255.0 green: (57.0)/255.0 blue: (95.0)/255.0 alpha: 1.0] //レーズン
#define myColorPlum [UIColor colorWithRed: (108.0)/255.0 green: (36.0)/255.0 blue: (99.0)/255.0 alpha: 1.0] //プラム
#define myColorRaspberry    [UIColor colorWithRed: (132.0)/255.0 green: (26.0)/255.0 blue: (117.0)/255.0 alpha: 1.0]    //ラズベリー
#define myColorFramboise    [UIColor colorWithRed: (154.0)/255.0 green: (13.0)/255.0 blue: (124.0)/255.0 alpha: 1.0]    //フランボワーズ
#define myColorDahliaPurple [UIColor colorWithRed: (165.0)/255.0 green: (0.0)/255.0 blue: (130.0)/255.0 alpha: 1.0] //ダリアパープル
#define myColorOrchidPurple [UIColor colorWithRed: (175.0)/255.0 green: (0.0)/255.0 blue: (130.0)/255.0 alpha: 1.0] //オーキッドパープル
#define myColorRaspberryRed [UIColor colorWithRed: (159.0)/255.0 green: (22.0)/255.0 blue: (106.0)/255.0 alpha: 1.0]    //ラズベリーレッド
#define myColorOrchid   [UIColor colorWithRed: (217.0)/255.0 green: (170.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]   //オーキッド
#define myColorLilla    [UIColor colorWithRed: (224.0)/255.0 green: (181.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]   //リラ
#define myColorRoseTendre   [UIColor colorWithRed: (230.0)/255.0 green: (175.0)/255.0 blue: (207.0)/255.0 alpha: 1.0]   //ローズタンドル
#define myColorOrchidPink   [UIColor colorWithRed: (218.0)/255.0 green: (129.0)/255.0 blue: (178.0)/255.0 alpha: 1.0]   //オーキッドピンク
#define myColorCyclamenPink [UIColor colorWithRed: (208.0)/255.0 green: (79.0)/255.0 blue: (151.0)/255.0 alpha: 1.0]    //シクラメンピンク
#define myColorMagenta  [UIColor colorWithRed: (228.0)/255.0 green: (0.0)/255.0 blue: (127.0)/255.0 alpha: 1.0] //マゼンタ
#define myColorBougainvillaea   [UIColor colorWithRed: (230.0)/255.0 green: (47.0)/255.0 blue: (139.0)/255.0 alpha: 1.0]    //ブーゲンビリア
#define myColorRuby [UIColor colorWithRed: (199.0)/255.0 green: (0.0)/255.0 blue: (103.0)/255.0 alpha: 1.0] //ルビー
#define myColorClaret   [UIColor colorWithRed: (148.0)/255.0 green: (31.0)/255.0 blue: (87.0)/255.0 alpha: 1.0] //クラレット
#define myColorAzalee   [UIColor colorWithRed: (216.0)/255.0 green: (52.0)/255.0 blue: (115.0)/255.0 alpha: 1.0]    //アザレ
#define myColorCosmos   [UIColor colorWithRed: (220.0)/255.0 green: (107.0)/255.0 blue: (154.0)/255.0 alpha: 1.0]   //コスモス
#define myColorLotusPink    [UIColor colorWithRed: (222.0)/255.0 green: (130.0)/255.0 blue: (167.0)/255.0 alpha: 1.0]   //ロータスピンク
#define myColorOldOrchid    [UIColor colorWithRed: (227.0)/255.0 green: (173.0)/255.0 blue: (193.0)/255.0 alpha: 1.0]   //オールドオーキッド
#define myColorRoseMist [UIColor colorWithRed: (222.0)/255.0 green: (190.0)/255.0 blue: (204.0)/255.0 alpha: 1.0]   //ローズミスト
#define myColorRoseDragee   [UIColor colorWithRed: (229.0)/255.0 green: (193.0)/255.0 blue: (205.0)/255.0 alpha: 1.0]   //ローズドラジェ
#define myColorCherryPink   [UIColor colorWithRed: (235.0)/255.0 green: (110.0)/255.0 blue: (160.0)/255.0 alpha: 1.0]   //チェリーピンク
#define myColorOpera    [UIColor colorWithRed: (233.0)/255.0 green: (83.0)/255.0 blue: (136.0)/255.0 alpha: 1.0]    //オペラ
#define myColorRoseRed  [UIColor colorWithRed: (234.0)/255.0 green: (97.0)/255.0 blue: (142.0)/255.0 alpha: 1.0]    //ローズレッド
#define myColorOldLilac [UIColor colorWithRed: (176.0)/255.0 green: (119.0)/255.0 blue: (140.0)/255.0 alpha: 1.0]   //オールドライラック
#define myColorCocoa    [UIColor colorWithRed: (110.0)/255.0 green: (74.0)/255.0 blue: (85.0)/255.0 alpha: 1.0] //ココア色
#define myColorWineRed  [UIColor colorWithRed: (179.0)/255.0 green: (62.0)/255.0 blue: (92.0)/255.0 alpha: 1.0] //ワインレッド
#define myColorGarnet   [UIColor colorWithRed: (148.0)/255.0 green: (35.0)/255.0 blue: (67.0)/255.0 alpha: 1.0] //ガーネット
#define myColorCochinealRed [UIColor colorWithRed: (200.0)/255.0 green: (44.0)/255.0 blue: (85.0)/255.0 alpha: 1.0] //コチニールレッド
#define myColorStrawberry   [UIColor colorWithRed: (231.0)/255.0 green: (53.0)/255.0 blue: (98.0)/255.0 alpha: 1.0] //ストロベリー
#define myColorRubyRed  [UIColor colorWithRed: (231.0)/255.0 green: (53.0)/255.0 blue: (98.0)/255.0 alpha: 1.0] //ルビーレッド
#define myColorCarmine  [UIColor colorWithRed: (215.0)/255.0 green: (0.0)/255.0 blue: (53.0)/255.0 alpha: 1.0]  //カーマイン
#define myColorSignalRed    [UIColor colorWithRed: (232.0)/255.0 green: (56.0)/255.0 blue: (61.0)/255.0 alpha: 1.0] //シグナルレッド
#define myColorBurgundy [UIColor colorWithRed: (108.0)/255.0 green: (39.0)/255.0 blue: (53.0)/255.0 alpha: 1.0] //バーガンディー
#define myColorBordeaux [UIColor colorWithRed: (108.0)/255.0 green: (39.0)/255.0 blue: (45.0)/255.0 alpha: 1.0] //ボルドー
#define myColorCamellia [UIColor colorWithRed: (218.0)/255.0 green: (83.0)/255.0 blue: (110.0)/255.0 alpha: 1.0]    //カメリア
#define myColorRose [UIColor colorWithRed: (233.0)/255.0 green: (84.0)/255.0 blue: (100.0)/255.0 alpha: 1.0]    //ローズ
#define myColorRosePink [UIColor colorWithRed: (241.0)/255.0 green: (156.0)/255.0 blue: (167.0)/255.0 alpha: 1.0]   //ローズピンク
#define myColorPink [UIColor colorWithRed: (245.0)/255.0 green: (178.0)/255.0 blue: (178.0)/255.0 alpha: 1.0]   //ピンク
#define myColorFlamingoPink [UIColor colorWithRed: (245.0)/255.0 green: (178.0)/255.0 blue: (172.0)/255.0 alpha: 1.0]   //フラミンゴピンク
#define myColorOldRose  [UIColor colorWithRed: (226.0)/255.0 green: (147.0)/255.0 blue: (153.0)/255.0 alpha: 1.0]   //オールドローズ
#define myColorPinkAlmond   [UIColor colorWithRed: (227.0)/255.0 green: (172.0)/255.0 blue: (174.0)/255.0 alpha: 1.0]   //ピンクアーモンド
#define myColorRoseDust [UIColor colorWithRed: (230.0)/255.0 green: (192.0)/255.0 blue: (192.0)/255.0 alpha: 1.0]   //ローズダスト
#define myColorWhite    [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]   //ホワイト
#define myColorSnowWhite    [UIColor colorWithRed: (250.0)/255.0 green: (253.0)/255.0 blue: (255.0)/255.0 alpha: 1.0]   //スノーホワイト
#define myColorPinkWhite    [UIColor colorWithRed: (254.0)/255.0 green: (249.0)/255.0 blue: (251.0)/255.0 alpha: 1.0]   //ピンクホワイト
#define myColorMilkyWhite   [UIColor colorWithRed: (255.0)/255.0 green: (255.0)/255.0 blue: (249.0)/255.0 alpha: 1.0]   //ミルキーホワイト
#define myColorAmberWhite   [UIColor colorWithRed: (255.0)/255.0 green: (249.0)/255.0 blue: (245.0)/255.0 alpha: 1.0]   //アンバーホワイト
#define myColorLavenderIce  [UIColor colorWithRed: (247.0)/255.0 green: (246.0)/255.0 blue: (251.0)/255.0 alpha: 1.0]   //ラベンダーアイス
#define myColorPearlWhite   [UIColor colorWithRed: (247.0)/255.0 green: (246.0)/255.0 blue: (245.0)/255.0 alpha: 1.0]   //パールホワイト
#define myColorIvory    [UIColor colorWithRed: (248.0)/255.0 green: (244.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]   //アイボリー
#define myColorPowderPink   [UIColor colorWithRed: (245.0)/255.0 green: (236.0)/255.0 blue: (244.0)/255.0 alpha: 1.0]   //パウダーピンク
#define myColorSilverWhite  [UIColor colorWithRed: (239.0)/255.0 green: (239.0)/255.0 blue: (239.0)/255.0 alpha: 1.0]   //シルバーホワイト
#define myColorFrostyGray   [UIColor colorWithRed: (232.0)/255.0 green: (236.0)/255.0 blue: (233.0)/255.0 alpha: 1.0]   //フロスティグレイ
#define myColorSilverPink   [UIColor colorWithRed: (238.0)/255.0 green: (234.0)/255.0 blue: (236.0)/255.0 alpha: 1.0]   //シルバーピンク
#define myColorBeigeCameo   [UIColor colorWithRed: (238.0)/255.0 green: (233.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]   //ベージュカメオ
#define myColorEcru [UIColor colorWithRed: (238.0)/255.0 green: (231.0)/255.0 blue: (224.0)/255.0 alpha: 1.0]   //エクリュ
#define myColorPinkBeige    [UIColor colorWithRed: (237.0)/255.0 green: (228.0)/255.0 blue: (225.0)/255.0 alpha: 1.0]   //ピンクベージュ
#define myColorFrostyWhite  [UIColor colorWithRed: (230.0)/255.0 green: (234.0)/255.0 blue: (230.0)/255.0 alpha: 1.0]   //フロスティホワイト
#define myColorOysterWhite  [UIColor colorWithRed: (234.0)/255.0 green: (232.0)/255.0 blue: (225.0)/255.0 alpha: 1.0]   //オイスターホワイト
#define myColorWisteriaMist [UIColor colorWithRed: (211.0)/255.0 green: (214.0)/255.0 blue: (221.0)/255.0 alpha: 1.0]   //ウィステリアミスト
#define myColorCloud    [UIColor colorWithRed: (212.0)/255.0 green: (217.0)/255.0 blue: (223.0)/255.0 alpha: 1.0]   //クラウド
#define myColorMoonGray [UIColor colorWithRed: (212.0)/255.0 green: (217.0)/255.0 blue: (220.0)/255.0 alpha: 1.0]   //ムーングレイ
#define myColorChinaClay    [UIColor colorWithRed: (212.0)/255.0 green: (220.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]   //チャイナクレイ
#define myColorSandBeige    [UIColor colorWithRed: (220.0)/255.0 green: (214.0)/255.0 blue: (210.0)/255.0 alpha: 1.0]   //サンドベージュ
#define myColorOrchidMist   [UIColor colorWithRed: (211.0)/255.0 green: (211.0)/255.0 blue: (216.0)/255.0 alpha: 1.0]   //オーキッドミスト
#define myColorReedGray [UIColor colorWithRed: (212.0)/255.0 green: (217.0)/255.0 blue: (214.0)/255.0 alpha: 1.0]   //リードグレイ
#define myColorSkyGray  [UIColor colorWithRed: (203.0)/255.0 green: (208.0)/255.0 blue: (211.0)/255.0 alpha: 1.0]   //スカイグレイ
#define myColorLavenderGray [UIColor colorWithRed: (188.0)/255.0 green: (186.0)/255.0 blue: (206.0)/255.0 alpha: 1.0]   //ラベンダーグレイ
#define myColorSilver   [UIColor colorWithRed: (201.0)/255.0 green: (202.0)/255.0 blue: (202.0)/255.0 alpha: 1.0]   //シルバー
#define myColorPearlGray    [UIColor colorWithRed: (201.0)/255.0 green: (201.0)/255.0 blue: (196.0)/255.0 alpha: 1.0]   //パールグレイ
#define myColorSandGray [UIColor colorWithRed: (201.0)/255.0 green: (201.0)/255.0 blue: (194.0)/255.0 alpha: 1.0]   //サンドグレイ
#define myColorMarbleGray   [UIColor colorWithRed: (192.0)/255.0 green: (197.0)/255.0 blue: (194.0)/255.0 alpha: 1.0]   //マーブルグレイ
#define myColorOpalGray [UIColor colorWithRed: (191.0)/255.0 green: (190.0)/255.0 blue: (197.0)/255.0 alpha: 1.0]   //オパールグレイ
#define myColorFrenchGray   [UIColor colorWithRed: (141.0)/255.0 green: (160.0)/255.0 blue: (182.0)/255.0 alpha: 1.0]   //フレンチグレイ
#define myColorMist [UIColor colorWithRed: (180.0)/255.0 green: (174.0)/255.0 blue: (177.0)/255.0 alpha: 1.0]   //ミスト
#define myColorAshBlond [UIColor colorWithRed: (181.0)/255.0 green: (181.0)/255.0 blue: (174.0)/255.0 alpha: 1.0]   //アッシュブロンド
#define myColorFog  [UIColor colorWithRed: (171.0)/255.0 green: (177.0)/255.0 blue: (181.0)/255.0 alpha: 1.0]   //フォッグ
#define myColorBeigeGray    [UIColor colorWithRed: (180.0)/255.0 green: (173.0)/255.0 blue: (169.0)/255.0 alpha: 1.0]   //ベージュグレイ
#define myColorSilverGray   [UIColor colorWithRed: (175.0)/255.0 green: (175.0)/255.0 blue: (176.0)/255.0 alpha: 1.0]   //シルバーグレイ
#define myColorStormGray    [UIColor colorWithRed: (170.0)/255.0 green: (170.0)/255.0 blue: (176.0)/255.0 alpha: 1.0]   //ストームグレイ
#define myColorGreenFog [UIColor colorWithRed: (171.0)/255.0 green: (177.0)/255.0 blue: (173.0)/255.0 alpha: 1.0]   //グリーンフォッグ
#define myColorAshGray  [UIColor colorWithRed: (159.0)/255.0 green: (160.0)/255.0 blue: (158.0)/255.0 alpha: 1.0]   //アッシュグレイ
#define myColorRoseGray [UIColor colorWithRed: (157.0)/255.0 green: (142.0)/255.0 blue: (135.0)/255.0 alpha: 1.0]   //ローズグレイ
#define myColorElephantSkin [UIColor colorWithRed: (159.0)/255.0 green: (159.0)/255.0 blue: (152.0)/255.0 alpha: 1.0]   //エレファントスキン
#define myColorBattleshipGray   [UIColor colorWithRed: (137.0)/255.0 green: (137.0)/255.0 blue: (137.0)/255.0 alpha: 1.0]   //バトルシップグレイ
#define myColorStoneGray    [UIColor colorWithRed: (137.0)/255.0 green: (136.0)/255.0 blue: (128.0)/255.0 alpha: 1.0]   //ストーングレイ
#define myColorMossGray [UIColor colorWithRed: (126.0)/255.0 green: (131.0)/255.0 blue: (127.0)/255.0 alpha: 1.0]   //モスグレイ
#define myColorDoveGray [UIColor colorWithRed: (125.0)/255.0 green: (123.0)/255.0 blue: (131.0)/255.0 alpha: 1.0]   //ダブグレイ
#define myColorGray [UIColor colorWithRed: (125.0)/255.0 green: (125.0)/255.0 blue: (125.0)/255.0 alpha: 1.0]   //グレイ
#define myColorSteelGray    [UIColor colorWithRed: (115.0)/255.0 green: (109.0)/255.0 blue: (113.0)/255.0 alpha: 1.0]   //スチールグレイ
#define myColorIvyGray  [UIColor colorWithRed: (102.0)/255.0 green: (108.0)/255.0 blue: (103.0)/255.0 alpha: 1.0]   //アイビーグレイ
#define myColorSlateGray    [UIColor colorWithRed: (98.0)/255.0 green: (96.0)/255.0 blue: (99.0)/255.0 alpha: 1.0]  //スレートグレイ
#define myColorGraphite [UIColor colorWithRed: (89.0)/255.0 green: (78.0)/255.0 blue: (82.0)/255.0 alpha: 1.0]  //グラファイト
#define myColorCharcoalGray [UIColor colorWithRed: (78.0)/255.0 green: (69.0)/255.0 blue: (74.0)/255.0 alpha: 1.0]  //チャコールグレイ
#define myColorTaupe    [UIColor colorWithRed: (80.0)/255.0 green: (73.0)/255.0 blue: (70.0)/255.0 alpha: 1.0]  //トープ
#define myColorLampBlack    [UIColor colorWithRed: (36.0)/255.0 green: (20.0)/255.0 blue: (14.0)/255.0 alpha: 1.0]  //ランプブラック
#define myColorBlack    [UIColor colorWithRed: (0.0)/255.0 green: (0.0)/255.0 blue: (0.0)/255.0 alpha: 1.0] //ブラック

(※)出典:WEB色見本 原色大辞典
(※)ホライズンブルーとホリゾンブルーがどちらもHorizonBlueで重複するので、ホリゾンブルーをHorizonBlue2としています。
(※)ベビーブルーとベイビーブルーがどちらもBabyBlueで重複するので、ベイビーブルーをBabyBlue2としています。
(※)原色と洋色で重複しているものがあります。

タスクスイッチャーで任意の画像を表示する

iOS7からタスクスイッチャーに入っているアプリは、バックグラウンドに遷移した時点の画面がサムネとして表示されていますが、アプリによってはここにあまり表示しない方がよかったり、別の情報を表示できた方がよかったりすることもありますよね。
そんな時はapplicationDidEnterBackgroundで画像を貼ってみましょう!


f:id:cccookie:20140514144434p:plain

実装方法は以下の通り。
ここでは画像(UIImageView)を貼付けていますが、ラベルでも何でもよさそうです。

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    
    UIViewController *blankViewController = [UIViewController new];
    
    //ここでは画像を貼付けていますが、任意のビューを貼ってください
    UIImage* blankImage = [UIImage imageNamed:@"blank.png"];
    UIImageView* blank = [[UIImageView alloc] initWithImage:blankImage];
    blank.frame = CGRectMake(0, 0, 320, 568);
    [blankViewController.view addSubview:blank];
    
    [self.window.rootViewController presentViewController:blankViewController animated:NO completion:NULL];

}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
    
    [self.window.rootViewController dismissViewControllerAnimated:NO completion:NO];

}

参考サイト:タスクスイッチャ−にアプリのスクリーンショットを表示させない | Cocoaの日々情報局

アプリ申請時のスクショはどこまで手を加えてもいいか問題の結論

f:id:cccookie:20140506012120p:plain

アプリ申請時のスクリーンショットは、ユーザーがインストールするか否かを判断する大きな判断材料になります(特に1枚目)。
なので、できるだけいいピクチャをアップしたいですし、できれば装飾なんかも加えて見栄えを良くしたり、よりアピールができるピクチャにしたいものです。

しかしながら、スクショに手を加えたらリジェクトされるんじゃないか?
という思いも少なからず出てくるだろうと思います。


結論としては、

  • スクショに少しくらい手を加えても怒られない。
  • やり過ぎはNG

こんな感じです。(普通の結論ですいませんw)

実際、スクショに手を加えてもリジェクトされる事はありません。
上記ピクチャは画面取りしたそのまんまの画像ではないですね。
ただ、スクショはアプリの内容を説明するものでなくてはならず、盛りすぎるとアプリの内容とかけ離れているとの理由でリジェクトされる事があります(リジェクト実績有り) 。


リジェクトに関しては時期的なものや、担当者による揺らぎ、運*1などに左右されますが、リジェクト理由となった項目は再申請時も必ずチェックされるので、この場合は素直にAppleの方針に従ってくださいませ!

*1:全てのビュー/機能をチェックするわけじゃないので、本来はNGでもたまたま通ってしまうケースもあります。