Skip to content

Instantly share code, notes, and snippets.

@wwwins
wwwins / bump.sh
Last active August 29, 2015 13:56
auto-bump a version number
#!/bin/sh
# auto bump a version number for git
# ie: 1.1 -> 1.2
# usage: bump.sh Project-Info.plist
if [ $# -ne 1 ]; then
echo usage: $0 plist-file
exit 1
fi
@wwwins
wwwins / Makefile
Last active August 29, 2015 13:56
The Makefile for my iOS projects
########################################################################
#
# Makefile for the iOS projects.
#
# Remember to modify Makefile.cfg.mk configuration.
#
# Usage:
#
# To build ipa:
# $make ipa
@wwwins
wwwins / TextDemoViewController.m
Last active August 29, 2015 13:57
UITextView issues in iOS6 and iOS7
//
// TextDemoViewController.m
// TextDemo
//
// Created by wwwins on 2014/3/5.
// Copyright (c) 2014年 wwwins. All rights reserved.
//
#import "TextDemoViewController.h"
@wwwins
wwwins / HVPBaseCalendarViewController.h
Last active August 29, 2015 14:04
iOS calendar manager
//
// HVPBaseCalendarViewController.h
//
// Created by wwwins on 2014/8/5.
// Copyright (c) 2014年 isobar. All rights reserved.
//
/*
Usage:
__weak HVPBaseCalendarViewController *weakSelf = self;
@wwwins
wwwins / ViewController.h
Last active August 29, 2015 14:05
UIPickerView to display TW states
//
// ViewController.h
//
// Created by wwwins on 2014/6/30.
// Copyright (c) 2014年 isobar. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController <UIPickerViewDataSource, UIPickerViewDelegate>
@wwwins
wwwins / zipcode.json
Created August 21, 2014 03:26
Taiwan ZipCode
{
"基隆市": {
"仁愛區": "200",
"信義區": "201",
"中正區": "202",
"中山區": "203",
"安樂區": "204",
"暖暖區": "205",
"七堵區": "206"
},
@wwwins
wwwins / MovieViewController.h
Last active August 29, 2015 14:07
MPMoviePlayerController sample code
//
// MovieViewController.h
// VideoPlayerDemo
//
// Created by isobar on 2014/10/22.
// Copyright (c) 2014年 isobar. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
@wwwins
wwwins / NSURLSessionDemoViewController.m
Created October 23, 2014 09:18
NSURLSession sample code
//
// NSURLSessionDemoViewController.m
// NSURLSessionDemo
//
// Created by wwwins on 2014/10/23.
// Copyright (c) 2014年 isobar. All rights reserved.
//
#import "NSURLSessionDemoViewController.h"
@wwwins
wwwins / zipCode.json
Created November 3, 2014 09:00
Taiwan Zip Code(from AmmonLin).
{
"基隆市": [
{ "text": "仁愛區", "value": 200 },
{ "text": "信義區", "value": 201 },
{ "text": "中正區", "value": 202 },
{ "text": "中山區", "value": 203 },
{ "text": "安樂區", "value": 204 },
{ "text": "暖暖區", "value": 205 },
{ "text": "七堵區", "value": 206 }
],
//
// UINavigationBar+CustomHeight.h
//
// Copyright (c) 2014 Maciej Swic
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is