see also.
オレオレUIViewControllerコーディングガイドライン オレオレUIViewコーディングガイドライン
ここで述べるターゲットはiOS5, Lion以降, ARC
| // | |
| // MyController.h | |
| // | |
| // Created by Ben Copsey on 20/07/2009. | |
| // Copyright 2009 All-Seeing Interactive. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <GHUnit/GHUnit.h> | |
| @class ASINetworkQueue; |
| #import "DJPWebViewDelegate.h" | |
| #import "DJPWebViewContent.h" | |
| @interface DJPWebView : UIWebView { | |
| DJPWebViewDelegate* delegateObject; | |
| DJPWebViewContent* content; | |
| } | |
| @property(nonatomic, retain)DJPWebViewContent* content; |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'gollum/frontend/app' | |
| Precious::App.set(:gollum_path, File.dirname(__FILE__)) | |
| Precious::App.set(:wiki_options, {}) | |
| run Precious::App |
see also.
オレオレUIViewControllerコーディングガイドライン オレオレUIViewコーディングガイドライン
ここで述べるターゲットはiOS5, Lion以降, ARC
| launchctl load -wF -D user ~/Library/LaunchAgents/jenkins.plist | |
| launchctl list | grep jenkins | |
| # 58066 - jenkins | |
| launchctl start jenkins | |
| open http://localhost:8080/ |
| - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset | |
| { | |
| UITableView *tableView = (UITableView *)scrollView; | |
| int n = tableView.frame.size.height / _cellHeight; | |
| if ((int)tableView.frame.size.height % (int)_cellHeight) n++; | |
| for (int i = 0; i <= n; i++) { | |
| NSIndexPath *indexPath = [tableView indexPathForRowAtPoint:CGPointMake(0, targetContentOffset->y + i * _cellHeight)]; |
| // バックグラウンドでGoogle Calendarからイベントを受信して保存するクラス | |
| - (void)main { | |
| if (!self.isCancelled) { | |
| NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
| if (!self.isCancelled) { | |
| NSManagedObjectContext *managedObjectContext = [self managedObjectContext]; | |
| [managedObjectContext setMergePolicy:NSMergeByPropertyObjectTrumpMergePolicy]; | |
| SPEventStore *eventStore = [SPEventStore defaultEventStore]; | |
| events = [[eventStore searchEventsWithPredicate:predicate] retain]; | |
| } |
| // | |
| // MyTestSegue.m | |
| // StoryBoardTest | |
| // | |
| #import "MyTestSegue.h" | |
| @implementation MyTestSegue | |
| - (void)perform |
| // add child view | |
| UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"]; | |
| [self addChildViewController:controller]; | |
| controller.view.frame = CGRectMake(0, 44, 320, 320); | |
| [self.view addSubview:controller.view]; | |
| [controller didMoveToParentViewController:self]; | |
| // remove child view | |
| UIViewController *vc = [self.childViewControllers lastObject]; | |
| [vc.view removeFromSuperview]; |
$fontAwesomePath: "fontawesome-webfont"@import font-awesomeDone !