ios
FLAnimatedImagegifを使用(あのFlipboardが公開してるライブラリ) ■ Podでインストール pod 'FLAnimatedImage', '~> 1.0' ■ 使いたいViewControllerに2つのヘッダファイルインポート #import "FLAnimatedImage.h" #import "FLAnimatedImageView.h" ローカル…
UIImagePicakerControllerを使ってデフォルトのカメラを呼び出すと表示が英語になっていて、コードからいじれない。 →言語の設定をすると変更できる。 ■ ビルドの言語設定 TARGETS > {PRODUCT_NAME}> Info > Localization native development region →Japan …
nanapiのアンサーなどに使われている、サイドメニューのライブラリJASidePanelsを既存のシステムに追加実装する。 JASidePanels Github https://github.com/gotosleep/JASidePanels■ cocoapodsでインストール Podfile pod 'JASidePanels'■ 新しいClassを追加…
storyboad上で線を引かずに遷移させる ■ 遷移先のstoryboadのIdentityを設定(Storyboad右側のCustom Classの下) Storyboad ID: FavoriteViewController Use Storyboad IDにチェックを入れる ■ 遷移させるViewControllerのヘッダーファイルimport #import "Fa…
FBtoken 的なエラーが9個くらい出たとき ■ Parseフレームワークを入れたのが原因らしい■ 解決策 BuildSettings > Linking > Other Linker Flags の -ObjC を削除参考) http://stackoverflow.com/questions/15457136/parse-for-ios-errors-when-trying-to-run…
nanapiのアンサー, Newspicks他いろんなアプリで使われてる引っ張って更新を実装■ Podfile pod 'EGOTableViewPullRefresh'■ storyboardでviewへTableViewをドラッグする。■ TableViewを選択した状態でビヨーンとViewController.hファイルへ伸ばし、UITableVi…
TableViewControllerがないTableViewにUIRefreshControlを実装 ■ .h @property (nonatomic, weak) UIRefreshControl *refreshControl; ■ .m - (void)viewDidLoad { [super viewDidLoad]; //UIRefreshControl 初期化 UIRefreshControl *rc = [[UIRefreshContr…
WebViewでviewDidStartLoadでインジケーターを呼びviewDidFinishLoadでインジケーターを消している場合、WebViewの中身によってはviewDidStartLoadが複数呼ばれるので、途切れ途切れになる。IFRAMEやAdsenseなどの広告が原因。 ■カウンターで対処 http://dra…
ScrollView をstoryboardだけで実装 https://www.youtube.com/watch?v=4oCWxHLBQ-A
■ まずはdeveloppercenterで証明書関係 http://www.lancork.net/2013/08/how-to-ios-push-first/ ※.p12ファイルを作成する時はパスワードなしで作成する■ サーバー側は Parse を使用 https://parse.com/参考) http://www.absolute-keitarou.net/blog/?p=1204
■ .h ファイル @interface DetailViewController : UIViewController <UIWebViewDelegate> @property (weak, nonatomic) IBOutlet UIWebView *webView; UIWebViewDelegateを追加 storyboardのwebviewから.hファイルへビヨーンと伸ばしてproperty設定■ .m ファイル - (void)viewD</uiwebviewdelegate>…
参考) http://lab.dolice.net/blog/2013/03/24/objc-url-encode-decode/
参考) http://hirooka.pro/?p=369
■ この通りにやると上手くサーバ側へ送れる http://yoshiminu.tumblr.com/post/56220528295/objective-c-post
■ ライブラリ追加 AVFoundation Framework ■ ヘッダーファイルにimportしインターフェイスへ定義 #import <AVFoundation/AVFoundation.h> @interface ViewController : UIViewController<AVAudioRecorderDelegate,AVAudioPlayerDelegate>{ AVAudioRecorder *avRecorder; AVAudioPlayer *avPlayer; } ■ あとはボタン実装して中にこの通りか</avaudiorecorderdelegate,avaudioplayerdelegate></avfoundation/avfoundation.h>…
参考) http://www.youtube.com/watch?v=jiiN9oFH3vE
//NSArray NSLog(@"itemArr: %@", itemArr); //int NSLog(@"number: %d",number);
■ iOSのライブラリ使うと簡単に圏外か3GかWiFiか確認できる。 http://obc-fight.blogspot.jp/2012/09/Reachability.html
参考) ■ Asset List関連 http://pentacreation.com/blog/2012/12/121207.html http://pentacreation.com/blog/2012/12/121212.html http://d.hatena.ne.jp/torasenriwohashiru/20110429/1304056248 http://ipgames.wordpress.com/tutorials/writeread-data-t…
■ だいたいこんな感じでできる。 UIImage *tookImg = [info objectForKey:UIImagePickerControllerOriginalImage]; NSData *data = UIImageJPEGRepresentation(tookImg, 0.8f); // ここではデータを保存する為に一般的に使われるDocumentsディレクトリ NSStr…
参考) Apple公式ドキュメント https://developer.apple.com/jp/devcenter/ios/library/documentation/iPhoneCoreData01.pdfhttp://blog.natsuapps.com/2010/04/core-data-performance_771.html
■ QuartzCoreフレームワークを使うとらくちん http://blog.studio-ak.jp/%E3%80%90%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%81%97%E3%81%9F%E8%B1%86%E3%83%86%E3%82%AF%E3%80%91ios%E3%81%A7uiview%E3%81%AE%E8%83%8C%E6%99%AF%E3%82%92%E3%82%B0%E3%83%A9…
■ 今はやりのやつ。 UIImage *logoImg = [UIImage imageNamed:[thumbnails objectAtIndex:indexPath.row]]; UIImageView *logoImgView = [[UIImageView alloc] initWithImage:logoImg]; //Making bokashi logoImgView.layer.shouldRasterize = YES; logoImgV…
■ まずはTableViewつくるところ http://www.appcoda.com/uitableview-tutorial-storyboard-xcode5/ http://www.appcoda.com/enhance-your-simple-table-app-with-property-list/ http://tanihiro.hatenablog.com/entry/2013/11/19/234920■ 次にカスタム http…
■ まず codebreak でリポジトリ作っておく■ xcodeでプロジェクト選択して xcode > source control > {バンドル名}-master > configure > remotesタブ > add remote name は分かりやすい名前 url はcodebreakで作ったリポジトリURL■ xcode再起動 これ大事■ xc…
参考) http://dev.classmethod.jp/references/first-step-multiple-view-by-storyboard/ http://kesin.hatenablog.com/entry/20120908/1347079921 http://eien.seesaa.net/article/261740269.html
■ UIImage の配列を .animationImagesで動かす @property NSArray *tutorialArr; //imageの配列定義 [super viewDidLoad]; // Do any additional setup after loading the view. // start tutorial animation _tutorialArr = [NSArray arrayWithObjects: [UI…
■ Social.framework ライブラリ追加 xcodeでプロジェクトをクリックしGeneralタブの下の方のLinked Framework and libraries の+をクリックし、Social.frameworkを追加■ 使うViewの.hファイルへライブラリインポート #import <UIKit/UIKit.h> #import <Social/Social.h> //これ追加■ てきとう</social/social.h></uikit/uikit.h>…
参考) http://www.raywenderlich.com/ja/50797/%E3%82%A2%E3%83%97%E3%83%AA%E3%81%8C%E3%82%AF%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%81%97%E3%81%A1%E3%82%83%E3%81%A3%E3%81%9F%E3%80%82%E3%81%95%E3%81%A6%E3%80%81%E3%81%A9%E3%81%86%E3%81%97%E3%8…
■ iOSのカメラアプリ作成時に参考になるURLhttp://news.mynavi.jp/column/iphone/001/index.html http://d.hatena.ne.jp/okahiro_p/20121012/1350024236 http://www.hirano-dept.com/blog/2010/02/iphone-3.html http://ameblo.jp/dokugakumono/entry-108520…