quattro_4 scribble

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

2013-03-01から1ヶ月間の記事一覧

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

thoughtbot podcast Episode #20 ★

thoughtbot Learn Episode #20 Ruby Lightning まだRubyconf 全体的に難しかった。サービス名と人名とコンタクトは相変わらず聞き取れない。 engineyard, bosh, cloudfoundry chicago ruby ChicagoRuby - Chicago Ruby on Rails Meetup 2012 Videos - WindyC…

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 ダウンロード…

RailsCasts #409 Active Model Serializers

#409 Active Model Serializers - RailsCasts as_json in model rails g serializer article app/serializers render json: @article, root: false default_serializer_options (private method) def url ; article_url(object) ; end has_many :comments em…

Ruby5 #351

Ruby5 - Episode #351 - March 8th, 2013 tpope plugin - herokuのプラグインいろいろ heroku-fucking-console heroku-remote heroku-wildcards heroku-buildpack-ruby-tpope heroku-binstubs heroku-surrogate heroku-pgbackups-pull 他にもvimが多い tpope…

RubyTapas #062 - #069

062 Fiber ?? Homemade numerator イミフ 063 Gem-Love Part 3 ? webmock, tdd ムズイ 064 Yield or Enumerate ★ 引数無しだとEnumeratorが返る return to_enum(:names) if block_given? return to_enum(__callee__) if block_given? 065 PulseFFI Part 7…

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…

NSScreencast Episode #6 AFNetworking

AFNetworking - NSScreencast podfile depencency 'AFNetworking' dependency 'JSONKit' pod install NSURLRequest AFRequestOperation success failure [operation start] JSON NSDictionary [obj objectForKey:@"field"] [cell.imageView setImageWithURL:…

NSScreencast Episode #5 CocoaPods

CocoaPods - NSScreencast linking static library (copy, linking) gem install cocoapods pod setup pod list pod search hoge Podfile platform dependency pod install Sample.xcodeproj/ Podfile.lock Pods in xcode proj Pods.xcconfig import header …

NSScreencast Episode #4 Automated Testing with Kiwi

Automated Testing with Kiwi - NSScreencast RSpec style Normal test suffix Tests (void)setup (void)tearDown STAssertEquals clone kiwi into lib foler drag as sibling of project Build Phases kiwi.a Build Settings some FLAGS other linker FLAG …

NSScreencast Episode #3 UITableView Basics

UITableView Basics - NSScreencast Protocol definition <UITableViewDataSource, UITableViewDelegate> Placeholders - Objects Cell reuse queue cell Identifier dequeueResusableCellWithIdentifier simulatorではパフォーマンスの違いが分からないがdeviceでは分かる NSBundle -> arrayWithContents</uitableviewdatasource,>…