at kaneshin

Free space for me.

iOS

Firebase Remote Config for iOS

この記事は Firebase Advent Calendar 2016 - Qiita の4日目の記事です。 最近は Golang を用いたサーバサイド開発を専らの仕事としていますが、約2年前はガッツリと iOS アプリ開発を行っていました。そのときから「アプリの振る舞いや見た目、A/Bテストを…

iOSDC で LT してきました! - Generative Programming in Swift

Generative Programming in Swift // Speaker Deck Generative Programming とは? 生成的プログラミング(英: Generative programming)とは、ジェネリックなクラス、プロトタイプベース、テンプレート、アスペクト、コード生成などの技法を使ってソースコ…

UINavigationBarの曇りガラスと線の消し方

[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault]; [[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];

Objective-Cで整数でなく小数でスリープ

意図的にスレッドスリープさせたいとき [NSThread sleepForTimeInterval:.3f]; sleep()は整数のみ

UIButtonがdisableで白くならない?

そんなときは [button setEnabled:NO]; [button.titleLabel setAlpha:.5f]; で無理矢理白っぽくする!

iOS6のSocial.frameworkとTwitter.framework

iOS6からはSocial.framework推奨になって、Twitter.frameworkはiOS5用となりましたね。で、うまい具合にiOS5, iOS6で使い分けてみた。kaneshin/Social-framework-objc · GitHubもっと楽ないい方法ないかね

iOS Device の OS version を取得

iOSをCompatible対応するときに必要かなと思った NSString *currentDeviceOSVersion = [[UIDevice currentDevice] systemVersion]; NSLog(@"%@", currentDeviceOSVersion); これで、NSString型でOSのVersionがわかるので、あとはif文とかで if ([currentDevi…