This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import RealmSwift | |
| class Data: Object { | |
| dynamic var name = "" | |
| ... | |
| dynamic var order = 0 // 並べ替えのためのカラムが必要 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "ViewController.h" | |
| @import CoreText; | |
| @interface ViewController () | |
| @end | |
| @implementation ViewController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: objective-c | |
| cache: | |
| directories: | |
| - vendor/bundle | |
| - Pods | |
| install: | |
| - bundle install --path=vendor/bundle --binstubs=vendor/bin | |
| - bundle exec pod install | |
| script: | |
| - '[ ! -z $(echo ${TRAVIS_BRANCH} | grep "^release.*$") ] && CONFIG=release || CONFIG=adhoc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rubygems/version" | |
| require "rake/clean" | |
| require "date" | |
| require 'time' | |
| require "json" | |
| require "open3" | |
| # Application info | |
| APP_NAME = "Ubiregi2" | |
| SDK = "iphoneos" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <UIKit/UIKit.h> | |
| #import "AppDelegate.h" | |
| int main(int argc, char * argv[]) | |
| { | |
| @autoreleasepool { | |
| [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"UIDisableLegacyTextView"]; | |
| return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| platform :ios, '5.0' | |
| pod 'SVProgressHUD' | |
| pod 'FFCircularProgressView' | |
| pod 'JLRoutes' | |
| pod 'NLCoreData' | |
| pod 'Evernote-SDK-iOS' | |
| pod 'Dropbox-iOS-SDK' | |
| pod 'UrbanAirship-iOS-SDK' | |
| pod 'Helpshift' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| [textField addTarget:self action:@selector(editingChanged:) forControlEvents:UIControlEventEditingChanged]; | |
| ... | |
| #define MAXLENGTH 3 | |
| - (IBAction)editingChanged:(id)sender | |
| { | |
| UITextField *textField = sender; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface UIScrollView (MyGestureRecognizer) | |
| - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gr | |
| shouldReceiveTouch:(UITouch *)touch | |
| { | |
| if (gr != myGestureRecognizer) { | |
| if ([super respondsToSelector:@selector(gestureRecognizer:shouldReceiveTouch:)]) { | |
| return [super gestureRecognizer:gr shouldReceiveTouch:touch]; | |
| } else { | |
| return YES; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // HTTPLoader.h | |
| // | |
| #import <Foundation/Foundation.h> | |
| typedef void(^ HTTPLoaderCompletionBlock)(NSData *data, NSError *erorr); | |
| @interface HTTPLoader : NSObject |