NSScreencast
Networking in iOS 7 - NSScreencast iTunes Affiliate Search APIから情報を取得して表示 iTunes Affiliate Search API http://itunes.apple.com/search?term=beatles&country=JP developer tool HTTP Client - Mac Developer Tool for HTTP Debugging term…
Interactive View Controller Transitions - NSScreencast スクリーンが上から垂れ下がるようなエフェクトの戻すパターン @interface InteractiveSwipe : UIPercentDrivenInteractiveTransition @property (nonatomic, strong) UIPanGestureRecognizer *pan;…
Xcode 5 Autolayout Improvements - NSScreencast iOS7のAutoLayout Ctrl + drag to superview Top/Bottom/Leading/Trailing space to Container Center Vertically/Horizontally in Container Dragした方向のものが表示される Orange constraints -> not fu…
iOS 7 View Controller Transitions - NSScreencast スクリーンが上から垂れ下がるようなエフェクト UIViewControllerInteractiveTransitioning Protocol SwatchTransition transitionDuration animateTransition UIViewControllerTransitioningDelegate ani…
Hello, iOS 7 - NSScreencast Guide What's New in iOS: iOS 7.0 iOS 7 UI Transition Guide: Before You Start iOS7 status bar style faster screen animation slide right shift screen nav bar title fade in/out XCode5 capabilities Take a sneak peek…
xctool - NSScreencast Unit testをコマンドラインで走らせる $ xcodebuild ... TEST_HOST $(BUNDLE_LOADER) TEST_AFTER_BUILD=YES いろいろ面倒で問題あり xctool $ brew install xctool $ xctool -workspace LoginTester.xcworkspace \ -scheme LoginTeste…
TDD View Controllers Part 2 - NSScreencast alert表示をmockしてテスト AlertViewProvider __block id _alertProvider; beforeEach(^{ _alertProvider = [OCMockObject mockForClass:[AlertViewProvider class]]; _vc.alertProvider = _alertProvider; [[_…
TDD View Controllers with Specta and OCMock - NSScreencast loginをmockしてテスト Specta Expecta EXP_SHORTHAND - If not defined, expectations must be written with EXP_expect instead of expect OCMock [UIStoryboard storyboardWithName:@"MainSt…
Searching in UITableView - NSScreencast UISearchDisplayControllerで検索バーの実装 viewDidLoad setupSearchBar self.tableView.tableHeaderView = self.searchBar; UISearchDisplayController UISearchDisplayController Class Reference initWithSearc…
Autolayout Fun - NSScreencast 3つのピザの画像のページをAuto layout Constraints Standard spacing recommended by apple Xcode No struts and spring (from iOS6) select target objects and right bottom on Xcode dropdown (horizontal spacing, ...) …
Associated Objects - NSScreencast addTargetでbuttonTappedメソッドのようなものを書かない実装 addTarget:self @selector(buttonTapped:) : for argument @selector(setRandomColor) retain cycle (viewDidLoad) __weak ViewController *weakSelf = self;…
Retrying HTTP Requests - NSScreencast token取得のretry automatically detect expired authentication tokens [self secureValueForKey:AUTH_TOKEN_KEY]; if (operation.response.statusCode == 401) [self.credentialStore setAuthToken:nil]; refactori…
Core Graphics: Polygons - NSScreencast Sliderを動かして、正n角形を描画 PolygonView CGMutablePathRef path = CGPathCreateMutable(); CGPathCloseSubpath(path); CGContextAddPath(context, path); CGContextFillPath(context); self.numberOfSides set…
Core Graphics: Gradients - NSScreencast gradientのeffectを描画 Core Graphics pure c library drawRect helper class CGContextRef context = UIGraphicsGetCurrentContext(); drawLinearGradient CGColorSpaceRef colorSpace = CGColorSpaceCreateDevic…
PaintCode - NSScreencast PaintCodeというツール使い方 $99.99 クラウド(雲)のロゴ作成 エフェクトのあるロゴ作成 Core Graphics half pixel matter Add Image Add circle Transparent circle effect (like hole) stripe cmd + d - duplicate Paste code …
Shine Effect - NSScreencast タイトルバーにShineエフェクトをつける shine logo on titlebar logo - black highlighted version - white mask - black titleView = logo view (UIImageView) CALayer CALayer *shineLayer = [CALayer layer]; shineLayer.co…
Sketch - NSScreencast Sketch 2というイラストツールの使い方, iPhone画面のモックアップ $49.99 photoshop, illustrator option + drug - duplicate item mockup status bar nav bar overlay shadow nav button grouping items sketchmine SketchMine Sket…
TDD Money Part 2 - NSScreencast MoneyのTDD実装の続き multi currency exchange plus method Bank class reduce Sum class augend 《数学》被加数 addend 《数学》加数 exchange rate Expression.h (id)plus:(id)other; @class Money, Bank; #import はだ…
AVAudioPlayer - NSScreencast 自作のAudioプレーヤー AVFoundation framework #import <AVFoundation/AVFoundation.h> AVAudioPlayer [[AVAudioPlayer alloc] initWithContentsOfURL:[self localAudioFileURL] initWithData:error self.audioPlayer.volume = self.volumeSlider.value; if</avfoundation/avfoundation.h>…
Validating IAP Receipts - NSScreencast iTunesのレシートを処理 (rails app x iOS app) iap_server rails app itunes-receipt gem Itunes::Receipt.verify! receipt_data, :allow_sandbox receipt_attributes itunes-receipt/lib/itunes/receipt.rb at mas…
In App Purchases - NSScreencast アプリ内課金 iTunes connect iTunes Connect デベロッパガイド https://developer.apple.com/jp/devcenter/ios/library/documentation/iTunesConnect_Guide.pdf in app purchase consumable - currency non consumable - u…
TDD Money with Specta and Expecta - NSScreencast Dollar, EuroなどMoneyのclassでTDD book Test Driven Devvelopment - Kent Beck testing framework kiwi specta (rspec like syntax) expecta (matchers) target "XxxTests" do pod specta pod expecta p…
Fun with UICollectionView - NSScreencast いろいろな形、レイアウトでCollectionViewを表示 UICollectionView cellForItemAtIndexPath Custom collection view cell (subclass) @interface NumberCell : UICollectionViewCell initWithFrame viewDidLoad […
Gesture Recognizers - NSScreencast tapした場所に画像を表示させる、移動、拡大縮小、回転 common initWithTarget:self, action:@selector(onViewDoubleTap:) [self.view addGestureRecognizer:tapRecognizer]; UITapGestureRecognizer tapRecognizer.numb…
Extracting Data From Strings - NSScreencast 文章から文字列を抽出する NSRegularExpression regularExpressionWithPattern:@"^Name:\s*?(.+)" options:NSRegularExpressionCaseInsensitive \w, \s enumerateMatchesInString usingBlock [input substringW…
A Tale of UIScrollView Customization - NSScreencast 画面半分のTableViewが上下にスクロールする UIScrollView .frame.origin.y .frame.size.height self.tableView.tableHeaderView = self.filterView; UIScrollViewDelegate scrollViewDidScroll MAX(0,…
OAuth2 - NSScreencast InstagramでOAuth2使って画像を取得 OAuth1.0 cumbersome to implement client side implicit authentication response_type=token NSURL URLWithString [[UIApplication sharedApplication] openURL:url]; include token every reque…
Versioning - NSScreencast バージョンの付け方、ツール Marketing version -> Version iTunesで見る番号 (1.0.1) Build version string short Build Info.plist (Build version) mainBundle infoDictionary CFBundleShortVersionString CFBundleVersion whe…
Objective-C Collections - NSScreencast 主にNSSetの説明 NSSet, NSArray, NSOrderedSet, and NSDictionary NSArray [array enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { idx がある (*stop) = YES; で止める(break) (BOOL) contai…
SSL Pinning - NSScreencast self-sign a certificateを使う Charles HTTP proxy / HTTP monitor Proxy > Proxy Settings SSL tab, a self-signed certificate Proxy > Breakpoints edit response add crt file to project open ssl convert openssl x509 -i…