quattro_4 scribble

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

NSScreencast

NSScreencast Episode #53 RestKit - Object Manager

RestKit - Object Manager - NSScreencast Wikiページ操作のアプリをUnit testで動かす RKPathFromPatternWithObject (@"/wiki/:category.name/:pageID/:slug.value\.html", page) STAssertEqualObjects , nil); type mismatch (unsigned int) (int)self.obj…

NSScreencast Episode #52 RestKit - CoreData

RestKit - CoreData - NSScreencast RestKitとCoreDataを使ってデータを取得 @interface Beer : NSManagedObject NSOrderedSet *breweries; @dynamic abv, ibu, labelIconImageUrl, name, breweries, style; MappingProvider [RKEntityMapping mappingForEnt…

NSScreencast Episode #51 Intro to RestKit: Mapping

Intro to RestKit: Mapping - NSScreencast RestKitでビール情報を取得する large framework complicated podspec subspec dependency Beer API site BreweryDB.com NSIndexSet *statusCodeSet = RKStatusCodeIndexSetForClass(RKStatusCodeClassSuccessful)…

NSScreencast Episode #54 Pony Debugger

Pony Debugger - NSScreencast Chrome dev tools使ってデバッグ Pony Debugger install ponyd serve --listen-interface=127.0.0.1 Chrome http://localhost:900 podfile PonyDebugger SocketRocket [[PDDebugger defaultInstance] connectToURL:[NSURL URLW…

NSScreencast Episode #50 Custom Cells

Custom Cells - NSScreencast Cellの主にデザインをカスタマイズ 前半ほぼPhotoshop light grey subtle gradient かすかなgradientが重要 save png Create group folders Cells Resources/Images tableView.separatorStyle = UITableViewCellSeparatorStyleN…

NSScreencast Episode #62 Mailing Logs

Mailing Logs - NSScreencast ログを記録して、アーカイブして、メール送信する pod 'CocoaLumberjack' cachesDirectory logsDirectory pod 'SSZipArchive' zipLogs framework Message UI mailLogs [mailVC setMailComposeDelegate:self]; textFilePredicate…

NSScreencast Episode #64 MapKit Annotations

MapKit Annotations - NSScreencast 4squareのAPIを使って地図にピンを打つ Foursquare API Client AFHTTPClient viewDidLoad updateLocation CLLocationManager locationManager if (!_locationManager) { _locationManager = [[CLLocationManager alloc] i…

NSScreencast Episode #63 From Scratch

From Scratch - NSScreencast MapViewユニバーサルアプリの作成 特にストーリーボードの切り替えのコードの部分 WAR (prefix) -> whats around Project setup $ cd Project $ Podfile $ pod install $ xc Script to open xcworkspaces create groups folder …

NSScreencast Episode #65 Alcatraz Package Manager

Alcatraz Package Manager - NSScreencast XCodeのプラグインパッケージマネージャー Alcatraz : Xcode Package Manager 3分 alcatraz-packages カラースキーム系 ObsidianCode Railscasts Sidetracked - railscasts inspired Solarized Dark AFNetworking T…

NSScreencast Episode #66 Processing Shape Files

Processing Shape Files - NSScreencast 地図上の地点データを読み込む(アメリカ地図) Shapefile gegraphic data arcGIS.com cocoapod shapelib files - dbx shp shx DBF API psgDBFFile DBFHandle, Open, Close, GetFieldCount, GetFieldInfo DBFRecordCo…

NSScreencast Episode #67 Map Overlays

Map Overlays - NSScreencast アメリカの地図上にマップキットで州境界の線を引く MapView Shape type MKPolygon MKPolyline MKOverlay CLLocationCoordinate2D 途中polygonしか言ってない感じがした 2年くらい前に、Rhodes触る機会あって、その時の拡張つく…

NSScreencast Episode #68 Xcode Project Templates

Xcode Project Templates - NSScreencast XCodeのプロジェクトテンプレートを自作する Custom Templates ~/Library/Developer/Xcode/Templates/Project Templates Base Templates /Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/Proje…

NSScreencast Episode #71 NSNumberFormatter

NSNumberFormatter - NSScreencast 数値のフォーマット表示 NSNumberFormatter 通貨 [formatter setNumberStyle:NSNumberFormatterCurrencyStyle]; 負数 [formatter setNegativeFormat:@"(¤00.0)"]; Locale NSLocale *locale = [NSLocale currentLocale]; [[…

NSScreencast Episode #70 Autolayout with Cells

Autolayout with Cells - NSScreencast #69の続き TableViewでEditとか横スワイプでDelete出したときに、レイアウトが崩れるのを直す awakeFromNib for NSLayoutConstraint [self removeConstraint:constraint]; firstItem, secondItem NSLayoutConstraint *…

NSScreencast Episode #69 NSFetchedResultsController

NSFetchedResultsController - NSScreencast mainContextとか使い分けしている viewDidLoad self.context = [[OILDataModel shareDataModel] mainContext]; [self setupFetchedResultsController]; self.fetchedResultsController.delegate = self; numberOf…

NSScreencast Episode #56 Twitter Integration

Twitter Integration - NSScreencast Application LinkedLibrary Social.framework #import <Social/Social.h> Accounts.framework #import <Accounts/Accounts.h> ACAccountStore requestAccessToAccountsWithType api.twitter.com/1.1/followers/list.…

NSScreencast Episode #57 Facebook Integration

Facebook Integration - NSScreencast ACAccountType accountStore requestAccessToAccountWithType id options = @{ } SLRequest requestForServiceType SLRequestMethodGET performRequestWithHandler onPost SLComposeViewController composeViewControll…

NSScreencast Episode #58 Container View Controllers

Container View Controllers - NSScreencast ContainerViewController TabBar, Navigation SlidePopContainerViewController viewDidLoad if( self.childViewControllers count == 0 addController:self.rootViewController willMoveToParentViewController …

NSScreencast Episode #60 Windows Azure Mobile Services Part 2

Windows Azure Mobile Services Part 2 - NSScreencast ChatApp User Room Message NSCChatViewController NSScreencast製か chatVC.client, room viewDidAppear setUserRoom viewWillDisapper setUserRoom:[NSNull null] NSPredicate setBetwirjActivityInd…

NSScreencast Episode #59 Windows Azure Mobile Services

Windows Azure Mobile Services - NSScreencast Pods WIndowsAzureMobileServices MessagesTableViewController WindowsAzure Create Mobile Service Data create tables BROWSE SCRIPT function insert(item, user, request) Identity twitter, facebook, g…

NSScreencast Episode #61 Cocoa Lumberjack

Cocoa Lumberjack - NSScreencast loggin framework Cocoa Lumberjack [DDLog addLogger DDTTYLogger DDASLLogger DDFileLogger setRollingFrequency setMaximumFileSize setMaximumNumberOfLogFiles const int ddLogLevel if DEBUG #else #endif

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