quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

ios

ドットインストール - iOSプログラミング入門

iOSプログラミング入門 (全24回) - プログラミングならドットインストール Company Identifier (Project作成時) 基本は自分のドメインの逆順、無ければ edu.self とか何でも良い 画面きりかえは右上のボタンで切り替えれる エディタ Standard Editor Assista…

NSScreencast Episode #31 Posting Multi-part Forms with AFNetworking

Posting Multi-part Forms with AFNetworking - NSScreencast server app on heroku cafe latte image app activeadmin +ボタンの実装 rightBarButton addItem:(id)sender itemCreated:(NSNotification *)notification storyboard tableview Crouped, Table…

NSScreencast Episode #30 Parse

Parse - NSScreencast Sign up Parse site Datastore, Push, Socialとか Cloud Code Data Browser (SDK)が利用できる(クラウドのデータベースとか見れる) Podfile pod 'Parse', :git => podfile SPEC pod 'MGImageUtilities' pod 'SVProgressHUD' addPhoto U…

NSScreencast Episode #41 Authentication with AFNetworking

Authentication with AFNetworking - NSScreencast send auth info each request auth_token auth_token_expired_at ttl CredentialStore isLoggedIn clearSavedCredentials authToken setSecureValue secureValueForKey SSKeychain setPassword forService …

NSScreencast Episode #49 Slide Out Menus

Running OCUnit (or Specta) Tests from Command Line - raingrove.com by Peter Jihoon Kim facebookみたいなslide menu MWFSlideNavigationViewController 動画の人は好きじゃないらしい SWReveaoViewController cocoapods app_delegate frontViewControll…

NSScreencast Episode #48 Code Snippets

Code Snippets - NSScreencast ⇥, ⇧⇥ - wordの切り替え dispatchのやつは長いので使える My Code Snippet Code Snippet Library スコープを決められる place holderを定義できる Userとか保存するレベルを決められる ~/Library/Developer/XCode/UserData/Cod…

NSScreencast Episode #39 Smart JSON Parsing

Smart JSON Parsing - NSScreencast block variable _block id json; _json = @{ @"hoge": @"AAA", @"piyo": @"BBB" }; import "Kiwi.h" beforeEach(^{ NSString camelCase componentsSeparatedByString:@"_" stringByAppendingString SEL, id [[_person.fir…

NSScreencast Episode #38 Class Introspection

Class Introspection - NSScreencast resignFirstResponder Class class = [self inspectClass:class] add @property methods self.methods = [self methodsInClass:class] import 'objc/runtime.h' SEL selector = method_getname(method) NSStringFromSele…

NSScreencast Episode #37 Xcode Tips & Tricks

Xcode Tips & Tricks - NSScreencast ^⌘↑ move .m .h files ^⌘← switch file ⌘0 toggle navigate pane ⌘5,6,7 ... ⌘Enter ⌥⌘Enter ⇧⌘` ⌘J switch pane ⇧⌘J ^⇧⌘W close split tabs fuzzy file search referencing ^6 jump to method ★★ ^5 move group file ^4…

NSScreencast Episode #34 Upgrading to iOS 6 and iPhone 5

Upgrading to iOS 6 and iPhone 5 - NSScreencast iphone 5 new screen size ⌘3 縮小, ⌘1 100% 568 black default view with XCode change view size rotation (shouldAutoRotate..., UIOrientation...) (BOOL)iphone5 UIInterfaceIdiomPhone height 1136

NSScreencast Episode #29 RubyMotion

RubyMotion - NSScreencast motion create my-proj rake exit bubble wrap named parameter

NSScreencast Episode #26 Building a Custom Picker Component - Part 2

Building a Custom Picker Component - Part 2 - NSScreencast onDone onCancel dismissPicker backdropView UIGestureRecognizer onBackdropTap onCancel:sender ただ見た目を少し変えるとかで手を出すと、backdropViewとか細かいところで変な挙動を作り出…

NSScreencast Episode #25 Building a Custom Picker Component

Building a Custom Picker Component - NSScreencast XXModalPickerView (UIView) name class with prefix properties selectedIndex, selectedValue, values initWithValue, presentInView withBlock, presentInWindowWithBlock typedef for block argument…

NSScreencast Episode #24 Pull to Refresh

Pull to Refresh - NSScreencast sspulltorefresh (github) podspec dependency ''SSPullToRefresh' pod install viewDidLoad refresh dispatch_after [self insertNewObject:nil] dispatch_async pullToRefreshView finishLoading dispatch_queue_t dispatc…

NSScreencast Episode #23 Intro to Storyboards

Intro to Storyboards - NSScreencast Create story board toggle : Is Initial View Controller check root VC, relationship Project settings Summary : select Main StoryBoard delete window code from app delegate.rb TableCell Dynamic Prototypes /…

NSScreencast Episode #22 Customizing UITabBar

Customizing UITabBar - NSScreencast foresquare ui again Edit > Embed in > TabBar VC TabBar -> Navigation -> TableView -> Detail VC setSelectionIndicatorImage setFinishedSelectedImage XCodeの複数引数の部分を複数行に書く時は : をそろえている…

NSScreencast Episode #21 Customizing UINavigationBar

Customizing UINavigationBar - NSScreencast recreate forsquare app Navigation Bar initWithFrame initWithCoder setBackgroundImage UIBarMetricsDefault navigationItem.titleView titleView self.navigationController.navigationBar.frame.size.heigh…

NSScreencast Episode #20 Dissecting Apps

Dissecting Apps - NSScreencast cd ~/Music/Itunes/ITunes Media/Mobile Applications copy .ips unzip .ips opening png will crush wget idev-recipes Utilities/appcrush configure appcrush.rb xcode-select --print-path $ appcrush.rb App.1.X.X.ips …

NSScreencast Episode #19 Push Notifications

Push Notifications - NSScreencast Provisioning Portal App IDs Enable for Apple Push Notification service Development Push SSL certificate Urban Airship Upload certificate (.p12) Rails app gem 'urbanairship' initializers/urbanairship key, s…

NSScreencast Episode #18 Adhoc Provisioning

Adhoc Provisioning - NSScreencast adhok distribution process XCode Project Info Adhoc New Scheme select all -> Adhoc Build Settings : search [code signing] iPhone Distribution For archive : Scheme Product > Archive > .ipa Keeping all archi…

NSScreencast Episode #17 App Provisioning

App Provisioning - NSScreencast iOS Dev Center - Provisioning Portal Certificate Organizer Submit Request iOS Team Provisioning Profile Distribution certificate Key Chain Access XCode serach Build Settings [code sign] Debug : Don't Code Si…

NSScreencast Episode #16 Key Value Observing

Key Value Observing - NSScreencast KVO - key value observing backgroundColor -> labelColor viewDidLoad [self.view addObserver:self forKeyPath options observeValueForKeyPath if keyPath isEqualToString viewDidUnload removeObserver static cha…

NSScreencast Episode #14 Tracking Download Progress

Tracking Download Progress - NSScreencast progress view op setDownloadProgressBlock:^( ) { dispatch_async self.progressView.alpha self.progressView.progress show downloaded bytes on label op start MPMoviewPlayerViewController ダウンロード…

NSScreencast Episode #28 Creating a Cocoapod

Creating a Cocoapod - NSScreencast episode 25, 26 pod --version = 0.10.0 gem install cocoapods pod spec help pod spec create AppName https://github.url summary license :type => 'MIT', :file => 'LICENCE' source :git, :tag platform :ios, '5.…

NSScreencast Episode #27 New Objective-C Syntax

New Objective-C Syntax - NSScreencast clang compiler XCode 4.4 NSArray *items = [NSArray arrayWithObjects: .., nil] count @[@"item1", @"item2", @"item3"] no need nil terminate items[i] NSDictionary @{ @"backup" : @YES, @"hoge" : @15 }; opt…

NSScreencast Episode #15 HTTP Caching

HTTP Caching - NSScreencast cache-tester heroku app curl Etag, Last-Modified Cache-Control: max-age=10 curl -I -H "If-None-Match: \"xxxxxxx\"" 304 Not Modified curl -I -H "If-Modified-Since: DATE" Charles HTTP monitor FIlter url Pods SDURL…

NSScreencast Episode #10 Fun with Blocks

Fun with Blocks - NSScreencast block From iOS SDK 4.0 UIImageVIew frame = self.view.bounds contentMode, UIViewContentModeScaleAspectFit addSubview UIActivityIndicatorView hideWhenStopped = YES center addSubview load resource startAnimating…

NSScreencast Episode #9 Automatic Reference Counting

Automatic Reference Counting - NSScreencast Erase [ autorelease/release/retain/dealloc] Erase dealloc method, @property, retain/etc.. Menu : Edit > Refactor > Objective-C ARC -> diff @property assign -> unsafe_unretained, weak (iOS5) Build…

NSScreencast Episode #8 Automatic UITableView Paging

Automatic UITableView Paging - NSScreencast Podfile dependency 'AFNetworking' pod install xxx.xcodeproj UITableViewController initWithDictionary NSDictionary objectForKey pragma mark NSMutableArray NSInteger currentPage, totalPages NumberO…

NSScreencast Episode #7 Serializing Data to Disk

Serializing Data to Disk - NSScreencast Lightweight Data login metadata caching activity while offline simple user generated data Property List Serialization NS Array, Dictionary, String, Data, Number, Data NSDictionary NSSearchPathForDire…