frequently using code tips(実装時によく利用するコードのまとめ)
enviroment(環境)
- Xcode6.1
UIViewController
screen transition(画面遷移)
PointDisplayViewViewController * viewController = [[PointDisplayViewViewController alloc]init];
[self presentViewController:viewController animated:YES completion:nil];
setting backgroundImage(背景画像設定)
UIImage *backgroundImage = [UIImage imageNamed:@"bg_1.png"];
self.view.backgroundColor = [UIColor colorWithPatternImage:backgroundImage];
Library(ライブラリ)
install cocoapods(cocoapodsのインストール)
// change directory to project folder
cd {project_folder}
// make Gemfile
touch Gemfile
// open Gemfile
vi Gemfile
// write code
source 'https://rubygems.org'
gem 'cocoapods'
// install
bundle install --path=vendor/bundle
* if ".cocoapods/repos (Errno::ENOENT)" has occurred, try next steps.
- bundle exec pod setup
- bundle exec pod install
thank you.
0 件のコメント:
コメントを投稿