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
{ | |
-webkit-touch-callout:none; | |
} |
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
a { | |
-webkit-tap-highlight-color:rgba(0,0,0,0); | |
} | |
/* | |
* or set some color | |
a { | |
-webkit-tap-highlight-color:rgba(100,0,0,0.2); | |
} | |
*/ |
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
%0D%0A |
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
// 起動時から変えておくときは、info.plist で設定する | |
Key: Status bar style | |
Type: String | |
Value: Opaque black style | |
// コードから | |
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque]; |
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
// 縦画面か判定 | |
UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation]) | |
// |
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
-(UIView*) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { | |
UIView *titleWrapper = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 120, 40)] autorelease]; | |
UILabel *titleLabel = [[[UILabel alloc] initWithFrame:CGRectMake(15, 15, 100, 20)] autorelease]; | |
titleLabel.backgroundColor = [UIColor clearColor]; | |
titleLabel.textColor = [UIColor redColor]; | |
titleLabel.font = [UIFont boldSystemFontOfSize:18]; | |
switch(section) { | |
case 0: | |
titleLabel.text = @"アプリ設定"; |
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
// グラデーションがうざいとき、単色画像とか設定すればいい | |
UINavigationBar *navBar = [[self navigationController] navigationBar]; | |
UIImage *backgroundImage = [UIImage imageNamed:@"someBackgroundImage"]; | |
[navBar setBackgroundImage:backgroundImage forBarMetrics:UIBarMetricsDefault]; | |
// tintColor で色を指定すると、ボタン類の色が変わるので一緒に設定すること | |
navBar.tintColor = [UIColor redColor]; |
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
# apache のソースディレクトリにて | |
/usr/local/bin/apxs -ic modules/metadata/mod_headers.c | |
chmod 755 /path/to/modules/mod_headers.so | |
/usr/local/bin/apxs -ic modules/metadata/mod_expires.c | |
chmod 755 /path/to/modules/mod_expires.so |
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
ob_start(); | |
print_r('$this->user_id'); | |
var_dump($this->user_id); | |
$result = ob_get_contents(); | |
ob_end_clean(); | |
$fp = fopen("./debug.txt", "a+" ); | |
fputs($fp, $result); | |
fclose( $fp ); |
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
:%S/clearfix/control-group/gc | |
:%S/class="input"/class="controls"/gc | |
:%S/(f.label.*)\s%>/\1, :class => 'control-label' %>/gc |