This file contains 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
- (void)viewWillAppear:(BOOL)animated | |
{ | |
[super viewWillAppear:animated]; | |
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; | |
[notificationCenter addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; | |
[notificationCenter addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; | |
} | |
- (void)viewDidDisappear:(BOOL)animated | |
{ |
This file contains 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
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ | |
StoryboardInfo* storyboardInfo = self.storyboards[indexPath.section]; | |
ControllerInfo* controllerInfo = storyboardInfo.controllers[indexPath.row]; | |
self.currentViewController = [self getControllerFromStoryboardInfo:storyboardInfo andControllerInfo:controllerInfo]; | |
UIViewController* controller = self.currentViewController; | |
controller.view.frame = CGRectMake(0, 0, controller.view.frame.size.width, controller.view.frame.size.height); |
This file contains 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
- (void)swipedScreen:(UISwipeGestureRecognizer*)gesture { | |
UIView* view = gesture.view; | |
CATransition *transition = [CATransition animation]; | |
transition.duration = 0.75; | |
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
transition.type = kCATransitionPush; | |
transition.subtype =kCATransitionFromLeft; | |
transition.delegate = self; |
This file contains 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)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
_window.rootViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; | |
[_window makeKeyAndVisible]; | |
return YES; | |
} |
This file contains 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 <MapKit/MapKit.h> | |
#import "ViewController.h" | |
@interface ViewController () | |
@property (weak, nonatomic) IBOutlet MKMapView *mapView; | |
@property (strong, nonatomic) NSTimer *timer; | |
@end |
This file contains 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
#!/usr/bin/env python | |
# Merge extra iOS App's Acknowledgements.plist into CocoaPods generated | |
# Acknowledgements.plist. | |
# Run "pip install dpath", s/MyApp/YourAppName/g, and replace extra_plist | |
# before use this script. | |
from __future__ import print_function | |
import operator | |
import plistlib | |
import sys |
This file contains 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
APP_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" MyApp/Info.plist | |
BUILD_NUMBER=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" MyApp/Info.plist | |
/usr/libexec/PlistBuddy \ | |
-c "Set :CFBundleShortVersionString $APP_VERSION" \ | |
-c "Set :CFBundleVersion $BUILD_NUMBER" \ | |
MyExtension/Info.plist |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Usage: | |
# 1. Google Spread Sheet を開く | |
# https://docs.google.com/spreadsheets/d/1EKw-FI-zB_dPnIH-HM0OwlLwVkHluVlrGRyKIKtVMwg/edit?usp=sharing | |
# 2. Hero シートをコピーして hero.tsv に貼り付ける | |
# (TSV: Tab Separated Volume で) | |
# 3. Item シートをコピーして item.tsv に貼り付ける | |
# 4. Ability シートをコピーして ability.tsv に貼り付ける |
This file contains 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, '8.0' | |
# Add this line to the headding of the Podfile | |
require './pod_patch' | |
target 'YourProject' do | |
pod 'PodNameForPatch' | |
# And add the patch instructions | |
pod 'PodNameForPatch' |
This file contains 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
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -q) | |
docker volume rm $(docker volume ls -q) |
OlderNewer