`
woainike
  • 浏览: 77659 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
个人网站建立了,后期数据移步www.rbbtsn0w.com
  @interfaceViewController () //@property (nonatomic,strong) UITableView *myTableView; @property (nonatomic,strong) UITableViewController *myTableViewController;   @end   @implementation ViewController   -(void)refreshView:(UIRefreshControl *)refresh {          refresh.attributedTitle = ...
Install Tomcat 7 on Amazon EC2 Ubuntu   Install tomcat7 sudo apt-get install tomcat7 Start tomcat7sudo service tomcat7 start Stop tomcat7sudo service tomcat7 stop Restart tomcat7sudo service tomcat7 restart Tomcat7 runs on port 8080 by default. Remember to add port 8080 to the security grou ...
When you have address it's a string, how to get geocoding ?   In ios5 ago, use google service.     As was mentioned before, the best thing to do is to use the Google Maps API, it supports a lot of formats but for several reasons I chose to go with JSON. So here are the steps to perform a JSON ...
如果只需要用图片替换原来的back button,不需要里面的内容的时候。 一个最简单的办法就是   //Give a image     UIImage* backImage = [[UIImageimageNamed:@"BackButton"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 20, 0, 0)]; //Set image size on back button      [[UIBarButtonItemappearance] setBackButtonBackgroundImage:bac ...
  You need to load it using the -loadNibNamed method. -initWithNibName is only for UIViewControllers. Add the following code to your MyCustomView init method:     NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"MyCustomView" owner:self options:nil]; UIView *mainView = [ ...

Xcode, git and .DS_Store

 
On trying to merge two git branches, I’ve often found Xcode 4 displays “Branches not found” in the Merge dialog, despite the Organiser clearly recognising multiple branches for the repo. It seems the problem occurs because Xcode believes the working copy has uncommitted changes (even though the C ...

git for windows

bulid 环境       scp 提交的命令   //file scp bug记录.rtf git@10.10.110.112:/cygdrive/d/GitRepos //doucment scp -r myDocument git@10.10.110.112:d:/GitRepos 默认是var,且是在windows下面的ssh的home目录 URL 的方式 git://host/path/to/repos.git ssh://user@host/path/to/repos.git user@host:path/to/repos.git ...
#import <UIKit/UIKit.h> @interface ViewController : UIViewController{ NSMutableArray *_mArray; NSMutableArray *temp; } @property(nonatomic ,retain)NSMutableArray *mArray; @end  #import "ViewController.h" @interface ViewController () @end @implementati ...

cookie观察

          NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];         for (NSHTTPCookie *cookie in [cookieStorage cookies]) {             NSLog(@"All cookie info /n %@", cookie);               //test/             NSArray *cookies = [NSArray arrayWith ...
OS6正式版发布当天博主我就更新了,随后也更新了对应的XCode以及iOS SDK,更新到了4.5 (4G182)。然后更新原有4.4 iOS5 SDK的项目,目前最主要的发现就是iOS6对于app屏幕朝向支持以及自动旋屏时的处理方式的变动。

Mac os 命令

    打开终端输入命令:defaults write com.apple.finder AppleShowAllFiles -bool trueKillAll Finder   隐藏 命令:defaults write com.apple.finder AppleShowAllFiles -bool false KillAll Finder       create  git project for Null git version      git init git add . git commit -m "Initial commi ...
  // // Keyboard.h // CustomAddress // // Created by Snow on 9/17/12. // Copyright (c) 2012 Snow. All rights reserved. // #import <Foundation/Foundation.h> @interface Keyboard : NSObject + (void)dismissKeyboard; + (void) globalResignFirstResponder; + (void) globalResignFir ...

实效API

iOS6 之后 presentModalViewController  实效,过期了   Presents a modal view managed by the given view controller to the user. (Deprecated in iOS 6.0. UsepresentViewController:animated:completion: instead.) Parameters viewControllerToPresent The view controller being presented. flag P ...
    The icon.png image and Default.png are two key image files. Icon.png acts as your appli- cation’s icon, the image used to represent the application on the SpringBoard home screen. Default.png (also known as your “launch image”) provides the splash screen dis- played during applicatio ...
Global site tag (gtag.js) - Google Analytics