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 | |
{ | |
UITabBarController *tabBarController = [[UITabBarController alloc] init]; | |
[self.window setRootViewController:tabBarController]; | |
// iOS 4.0 이전 | |
//[window addSubView:[tabBarController view]]; | |
[tabBarController release]; | |
[self.window makeKeyAndVisible]; |
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
- (id)initWithStyle:(UITableViewStyle)style | |
{ | |
self = [super initWithStyle:style]; | |
if (self) | |
{ | |
// get the tabbar item | |
UITabBarItem *tbi = [self tabBarItem]; | |
[tbi setTitle:@"Favorite"]; | |
// tabbar의 아이콘 이미지를 추가하려면 아래추가 | |
//[tbi setImage:[UIImage imageNamed:@""]; |
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
UILabel *titleLabel = [[UILabel alloc] initWithFrame: | |
CGRectMake(0.0f, 0.0f, 200.0f, 25.0f)]; | |
titleLabel.backgroundColor = [UIColor clearColor]; | |
titleLabel.font = [UIFont systemFontOfSize:20.0f]; | |
titleLabel.textAlignment = UITextAlignmentCenter; | |
titleLabel.textColor = [UIColor blackColor]; | |
titleLabel.text = @"잘되는구먼!"; | |
self.navigationItem.titleView = titleLabel; | |
[titleLabel release]; | |
self.navigationController.navigationBar.layer.contents = |
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
# built application files | |
*.apk | |
*.ap_ | |
*.jar | |
# keystore | |
*.keystore | |
# files for the dex VM | |
*.dex |
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/python | |
''' | |
Copyright 2009, The Android Open Source Project | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
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 android.util.Log; | |
public class MyLogger { | |
public static final boolean LOGD = true; | |
public static final boolean LOGE = true; | |
public static void d(String tag, String msg) { | |
if (LOGD) { |
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 android.content.Context; | |
import android.graphics.Typeface; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.TextView; | |
import java.util.HashMap; | |
import java.util.Map; |
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
Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/Roboto-Black.ttf"); | |
TextView tv = (TextView) findViewById(R.id.FontTextView); | |
tv.setTypeface(tf); |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
/** | |
* User: kwanghyun | |
* Date: 12. 11. 28 | |
* Time: 오후 6:10 | |
*/ | |
public class ProgressSprite extends CCProgressTimer | |
{ | |
private static final String TAG = "ProgressSprite"; | |
private GameLayer game_layer_ = null; | |
private float progress_rate_; |
OlderNewer