![【iOS】UIWebView Hacks 〜ブラウザ開発テクニック〜](https://cdn-ak-scissors.b.st-hatena.com/image/square/4cd6bcd98c8e8a2a5ae1b2ffb7d8d168c9b80c31/height=288;version=1;width=512/https%3A%2F%2Fblog.fenrir-inc.com%2Fwp%2Fwp-content%2Fthemes%2Ffenrir_dev%2Fimg%2Fcommon%2Fogp_dev_engineer.png)
Mobile App Development Fast, Easy and Flexible.Cross-platform hybrid mobile app development platform and tools in the cloud GET STARTED FREE Monaca makes HTML5 hybrid mobile app development with Apache Cordova simple and easy. Monaca is the most open hybrid app development platform available and ready to be immediately plugged into your existing workflow and development environment. From Cloud IDE
サルでき.jpは閉鎖しました。 今まで沢山の方々にお越しいただき本当にありがとうございました。 新しいサイト「サルでき.com」はこちらです。 また皆様とお会い出来るのを楽しみにしております。 サルでき.jp管理人 カワサキタカシ
#import <UIKit/UIKit.h> @interface AutoSizingLabel : UILabel {} - (id) initWithText:(NSString *)text andFont:(UIFont *)font; @end @implementation AutoSizingLabel - (id) initWithText:(NSString *)text andFont:(UIFont *)font { CGSize size = [text sizeWithFont:font constrainedToSize:CGSizeMake([[UIScreen mainScreen] bounds].size.width, 10000) lineBreakMode:UILineBreakModeTailTruncation]; self = [super
2009年04月11日21:29 カテゴリプログラミングiPhone UIViewのフェードイン/フェードアウト ブログネタ:Objective-C に参加中! 良く使いそうなのでいつも通りカテゴリで追加。 UIView+Effect.h // // UIView+Effect.h // KeitaiEmuPro // // Created by あんのたん on 2009/04/11. // Copyright 2009 あんのたん. All rights reserved. // #import <Foundation/Foundation.h> @interface UIView (Effect) - (void)fadeInWithDuration:(NSTimeInterval)interval; - (void)fadeOutWithDuration:(NSTimeInterv
Twitterアプリなどでよく見かける文字列サイズぴったりのボタンを良く見かけますよね。 今回はそれと同じような文字列サイズのボタンを作成してみます。 文字列からサイズを取得するにはこちらを参考 - 文字列からサイズを取得する //表示する文字 NSString *text = @"あいうえおあいうえおあいうえおあいうえおあいうえおあいうえお"; //表示最大サイズ CGSize bounds = CGSizeMake(100, 500); //フォント UIFont *font = [UIFontfontWithName:@"Helvetica-Bold"size:18]; //表示モード UILineBreakMode mode = UILineBreakModeWordWrap;//改行する //全体のサイズを取得 CGSize size = [text sizeWithFont:f
//表示する文字 NSString *text = @"あいうえおあいうえおあいうえおあいうえおあいうえおあいうえお"; //表示最大サイズ CGSize bounds = CGSizeMake(100, 500); //フォント UIFont *font = [UIFontfontWithName:@"Helvetica-Bold"size:18]; //表示モード UILineBreakMode mode = UILineBreakModeWordWrap;//改行する //1行だけのサイズを取得 CGSize size = [text sizeWithFont:font forWidth:bounds.width lineBreakMode:mode]; //全体のサイズを取得 CGSize size2 = [text sizeWithFont:font constrainedToS
自分用メモ。 nilは「Objective-Cの空のオブジェクト」、NULLは「C言語の空ポインタ」と解釈する。もっとも良い例がNSFileManagerのcreateDirectoryAtPath:withIntermediateDirectories:attributes:error:です。 (http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/createDirectoryAtPath:withIntermediateDirectories:attributes:error:) リファレンスを読んでみると、attributes
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く