2014-02-01から1ヶ月間の記事一覧

3.12: Apps should have all included URLs fully functional when you submit it for review, such as support and privacy policy URLs

3.12: Apps should have all included URLs fully functional when you submit it for review, such as support and privacy policy URLs 3.12We found that your app includes URLs which do not properly navigate to the intended destination, which is …

16進数でUIColor をつくる

#import <UIKit/UIKit.h> @interface UIColor (UIColorEx) +(id)colorWithRGBA: (uint)rgba; +(id)colorWithRGB: (uint)rgb; @end #import "UIColor+RGBA.h" @implementation UIColor (RGBA) +(id)colorWithRGBA: (uint)rgba { const uint r = (rgba & 0xFF000000) >> 24; c</uikit/uikit.h>…

AFNetworking で multipart/form-data を送る

こんな感じで使う HogeData* data = [[HogeData alloc] init]; //data.bin = ... //data.name = ... //data.mimeType = ... params = @{ @"image": data, @"name": @"name" }; Hoge* hoge = [[Hoge alloc] init]; [hoge request:@"" method:@"GET" params:pa…

Twitter アプリケーションの登録に、メール認証が必要になっている

現在新しいアカウントを作り、アプリケーションを作成するには、 携帯電話のメールを認証してからでないと、作成出来ない。

プログラムから動的に mp3 file を返すとき、safari で再生されない

携帯電話などではお馴染みだが、Rangeヘッダーがついている場合は、 206 のステータスで部分的に返す必要がある。safari でだけ再生されなかったが、 返しているデータバイト数が1バイト足りないためだった。 def main # 何かの方法で読み込む bin = load se…