Google App Engine 1.7.7のアップデートでソケット接続がサポートされたことによってAppleのPush Notification Serviceが使えるようになりました。 Google App Engine Blog: App Engine 1.7.7 Released Outbound sockets is now in preview in this release for Java and Python. With outbound sockets, billing-enabled App Engine applications can now make outbound connections with TCP or UDP sockets. This allows developers to build applications that weren’t pr
『iOS 7 の隠しフォント, ヒラギノ角ゴ W1/W2 を CSS で指定する』という記事を読んで、「あれ、これってPrivate APIにあたるんじゃない?」と思いフォント名一覧を出力してみたので、そのついでにその一覧をここに掲載しておきます。 (追記2013/10/17その1) iOS7で追加されたフォント、iOS6で追加されたフォントがわかるよう色分けしました。 (追記2013/10/17その2) iOS7の新機能のサンプルコード集、『iOS7 Sampler』 で新フォントを確認できるようにしました。 サンプルコードを提供されてもビルドできない!というデザイナーやディレクターの方は、ぜひお近くの開発者に実機インストールしてもらってみてください。 (追記ここまで) 何に使うのか? self.hogeLabel.font = [UIFont fontWithName:@"Helvet
I want to only support vertical orientation throughout all the view controllers of my iOS app. However, I embed a YouTube video in one of my view controllers, and when that video is selected to take up the full screen, I want the user to be able to orient his/her phone horizontally so the video expands to take the full screen. EDIT: I tried using the following code from Autorotate in iOS 6 has str
珍しく更新頻度が高いですが、前回の記事をチェックしているときに気付いたので、忘れないうちにメモ。 今回の記事は、一般的にこういう使い方も知られています、という内容。 Arrayクラスのメソッドをノードリストのメソッドとして実行 getElementsByTagNameで取ってきたDOMエレメント(HTMLLIElement)の配列風オブジェクトHTMLCollectionや同じくquerySelectorAllのNodeListは、経験上なんとなくArrayクラスのメソッドが使えない気がしてたのですが、(↓並びを逆にしようとする一例) // li要素列を取得(HTMLCollection) var els = document.getElementsByTagName('li'); // Arrayクラスのreverseメソッドをelsのメソッドとして実行 Array.prototype.
UIWebView では、リンクをロードする度に shouldStartLoadWithRequest メソッドが呼ばれます(UIWebViewDelegate プロトコルを実装する必要有り)。 そのメソッド内で YES を返すと読み込まれ、NO を返すと読み込まれないようにすることができます。このメソッド内で、UIWebView でタップされたリンクを色々と料理することが出来ます。 ここでは、タップされたリンクをすべて Safari で開く一例を紹介します。 - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if (navigationType ==
Inspiring growth through innovative app experiences and digital products We deliver high-profile, can’t fail applications for a variety of clients and industries. With a focus on mobile applications for handsets and tablets, native development is our specialty while we also have in-depth experience with newer, cross-platform technologies such as React Native and Flutter. We help our clients engage
今さら感たっぷりですが、iOS 6から(?)UILabelで行間や文字間を簡単に調整出来るようになっていたのでメモ。 iOS 7では必須かも。 文字間を調整する。 まずは文字間(LetterSpacing)です。 NSMutableAttributedStringのNSKernAttributeNameを利用します。 #define FONT_SIZE 18.0f - (void)viewDidLoad { [super viewDidLoad]; NSString *text = @"テキスト"; CGFloat customLetterSpacing = 10.0f; // NSAttributedStringを生成してLetterSpacingをセット NSMutableAttributedString *attributedText = [[NSMutableAttributedS
Objective-Cでフェードイン・フェードアウトアニメーションを実行するサンプルを以下に作成しました。ボタンを押すと背景画像がアニメーションします。 サンプルダウンロード https://github.com/masakihirokawa/objc-animations-fade ソースコード ViewController.h #import <UIKit/UIKit.h> @interface ViewController : UIViewController { BOOL _isFadeIn; } @property (weak, nonatomic) IBOutlet UIButton *sampleButton; @property (weak, nonatomic) IBOutlet UIImageView *sampleImageView; - (IBAction)butt
メソッドを一定の間隔で呼びたい Objective-Cでとあるメソッドを一定の間隔で呼びたい場合の実装方法です 以下のようにNSTimerのscheduledTimerWithTimeInterval:target:selector:userInfo:repeatsを使うとそんな事が出来ます パラメータは・・・ timeIntervalは何秒間隔で繰り返すか targetはどのオブジェクトのメソッドか selectorは呼ぶメソッド userInfoは何でも渡せるみたい。id型 repeatsは繰り返すか繰り返さないか [NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(hoge:) userInfo:nil repeats:YES]; 呼び出したいメソッドは以下のように定義 パラメータにN
ドメインウェブの設定が見つかりません 考えられる原因 ドメインウェブの設定がまだ行われていない。 ドメインウェブの設定がまだ反映されていない。(反映には数時間~24時間かかることがあります) ドメインウェブ・DNSの設定が誤っている。 アカウントが存在しない、契約が終了している、削除されている。
スクロール位置によってページ番号を計算する処理。 スクロールビューの中央を境にページ番号を増減するので、実際の見た目とページ番号の乖離も無いと思う。(round()で四捨五入しているのはそのため。) 縦方向の場合はX, widthをY, heightと読み替えれば良い。 // 横方向にページングする UIScrollView のページ番号を計算 - (NSUInteger)currentPageIndex:(UIScrollView*)scrollView { CGFloat w = CGRectGetWidth(scrollView.frame); // ページ幅 NSInteger maxPageIndex = …; // 最大ページ番号(count-1) CGFloat positionX = scrollView.contentOffset.x; // 現在の表示座標x CGFlo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く