`
wfkbyni
  • 浏览: 88182 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
转:http://www.sharejs.com/codes/objectc/5882
-(void)settingTabbarController{     self.tabBarViewControoler.tabBar.selectionIndicatorImage = [UIImage imageNamed:@"tabbar_selected"];     for (int i = 0; i < self.tabBarViewControoler.tabBar.items.count; i++) {         UITabBar* tabbar = self.tabBarViewControoler.tabBar;         UITabB ...
地址1:http://code.cocoachina.com/detail/199714/CustomNavigationBar 地址2:https://github.com/jimple/CustomNavigationBar
1.定义控制cell的两个变量     //最近打开的index     int currentClickIndex;         //是否打开cell     BOOL isOpenCell; 2.给变量赋值 - (void)viewDidLoad {     [super viewDidLoad];     currentClickIndex = -1;     [self.answerTableView registerClass:[AnswerTableViewCell class] forCellReuseIdentifier:cellString];     } 3.控 ...
http://makeappicon.com/   传一个1024*1024的图片上去,会生成各种尺寸的Icon,包括android,ios6,ios7!!
转:http://cshbbrain.iteye.com/blog/1859810
1.http://www.360doc.com/content/13/1224/09/14615320_339677793.shtml   2.http://my.oschina.net/joanfen/blog/133642
http://blog.csdn.net/kevinwlc/article/details/21467499 //核心代码 UIimage* imageNormal = [UIImage imageNamed:@"tabhost_three_bg_nor"]; UIimage* imageSelected = [UIImage imageNamed:@"tabhost_three_bg_sel"]; if (ios7) {             item.selectedImage = [imageSelected imageWithRendering ...

http请求

网上的demo,改了些东西
转:http://www.rapidsnail.com/Tutorial/t/2012/1018/30/15343/the-android-ontouch-and-onclick-conflict-processing.aspx public boolean onTouch(View V, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { X1 = event.getX(); Y1 = event.getY(); } if (event.getAction() == Mo ...
cocos2d-iphone粒子效果 转自 http://www.2cto.com/kf/201303/196945.html
1.添加监听函数 [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];         [[NSNotificationCenter defaultCenter] addObserver:self                                                           selector:@selector(deviceOrientationDidChange:)                                                 ...
http://blog.csdn.net/zhy_cheng/article/details/8271154
android默认的字体是GB2312,在xcode中,转换成UFT-8 char* HelloWorld::G2U(const char* gb2312)  {  int len = MultiByteToWideChar(CP_ACP, 0, gb2312, -1, NULL, 0);  wchar_t* wstr = new wchar_t[len+1];  memset(wstr, 0, len+1);  MultiByteToWideChar(CP_ACP, 0, gb2312, -1, wstr, len);  len = WideCharToMultiByt ...
private void createShortCut() { Intent shortcutIntent = new Intent(Intent.ACTION_MAIN); shortcutIntent.setClassName(this, this.getClass().getName()); shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY); sho ...
Global site tag (gtag.js) - Google Analytics