2013-03-01から1ヶ月間の記事一覧
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…
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 Learn Episode #20 Ruby Lightning まだRubyconf 全体的に難しかった。サービス名と人名とコンタクトは相変わらず聞き取れない。 engineyard, bosh, cloudfoundry chicago ruby ChicagoRuby - Chicago Ruby on Rails Meetup 2012 Videos - WindyC…
RubyMotion - NSScreencast motion create my-proj rake exit bubble wrap named parameter
Building a Custom Picker Component - Part 2 - NSScreencast onDone onCancel dismissPicker backdropView UIGestureRecognizer onBackdropTap onCancel:sender ただ見た目を少し変えるとかで手を出すと、backdropViewとか細かいところで変な挙動を作り出…
Building a Custom Picker Component - NSScreencast XXModalPickerView (UIView) name class with prefix properties selectedIndex, selectedValue, values initWithValue, presentInView withBlock, presentInWindowWithBlock typedef for block argument…
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…
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 /…
Customizing UITabBar - NSScreencast foresquare ui again Edit > Embed in > TabBar VC TabBar -> Navigation -> TableView -> Detail VC setSelectionIndicatorImage setFinishedSelectedImage XCodeの複数引数の部分を複数行に書く時は : をそろえている…
Customizing UINavigationBar - NSScreencast recreate forsquare app Navigation Bar initWithFrame initWithCoder setBackgroundImage UIBarMetricsDefault navigationItem.titleView titleView self.navigationController.navigationBar.frame.size.heigh…
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 …
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…
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…
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…
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…
Tracking Download Progress - NSScreencast progress view op setDownloadProgressBlock:^( ) { dispatch_async self.progressView.alpha self.progressView.progress show downloaded bytes on label op start MPMoviewPlayerViewController ダウンロード…
#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 - 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…
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…
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.…
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…
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…
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…
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…
Automatic UITableView Paging - NSScreencast Podfile dependency 'AFNetworking' pod install xxx.xcodeproj UITableViewController initWithDictionary NSDictionary objectForKey pragma mark NSMutableArray NSInteger currentPage, totalPages NumberO…
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…
AFNetworking - NSScreencast podfile depencency 'AFNetworking' dependency 'JSONKit' pod install NSURLRequest AFRequestOperation success failure [operation start] JSON NSDictionary [obj objectForKey:@"field"] [cell.imageView setImageWithURL:…
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 …
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 …
UITableView Basics - NSScreencast Protocol definition <UITableViewDataSource, UITableViewDelegate> Placeholders - Objects Cell reuse queue cell Identifier dequeueResusableCellWithIdentifier simulatorではパフォーマンスの違いが分からないがdeviceでは分かる NSBundle -> arrayWithContents</uitableviewdatasource,>…