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
1 | |
$ git clone https://github.com/piaoapiao/third.git | |
Cloning into 'third'... | |
remote: Counting objects: 3, done. | |
remote: Total 3 (delta 0), reused 0 (delta 0) | |
Unpacking objects: 100% (3/3), done. | |
Administrator@FREESKYC-B9D3B2 /d | |
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
UIDevice *device = [UIDevice currentDevice];//创建设备对象 | |
NSString *deviceUID = [[NSString alloc] initWithString:[device uniqueIdentifier]]; | |
NSLog(@"%@",deviceUID); // 输出设备id | |
CFUUIDRef udid = CFUUIDCreate(NULL); | |
NSString *udidString = (NSString *) CFUUIDCreateString(NULL, udid); | |
NSLog(@"%@",udidString); | |
http://www.cocoachina.com/appstore/top/2012/0326/4092.html |
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
http://www.blogjava.net/nokiaguy/archive/2009/01/02/249556.html |
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
http://stackoverflow.com/questions/9788535/how-to-intercept-long-press-on-uitextview-without-disabling-context-menu |
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
NSDate *date = [NSDate dateWithTimeIntervalSince1970: 1341802865565/1000]; | |
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; | |
[dateFormat setDateFormat:@"dd/MM/yyyy"]; | |
NSString *dateStr = [dateFormat stringFromDate: date]; | |
NSDateFormatter * formatter = [[NSDateFormatter alloc ] init]; | |
//[formatter setDateFormat:@"YYYY.MM.dd.hh.mm.ss"]; | |
[formatter setDateFormat:@"YYYY-MM-dd hh:mm:ss:SSS"]; | |
NSString *date = [formatter stringFromDate:[NSDate date]]; |
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
uitextview | |
NSRange range = [txtView selectedRange]; | |
NSString *str = [txtView.text substringWithRange:range]; | |
uiwebview | |
NSString *selection = [_pLongPressTextView stringByEvaluatingJavaScriptFromString:@"window.getSelection().toString()"]; |
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
http://stackoverflow.com/questions/2937780/uitableviewcell-height-with-0-rows |
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
http://www.cocoachina.com/macdev/tips/2012/0515/4250.html |
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
http://www.cocoachina.com/macdev/tips/2009/0611/126.html |
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
#include <iostream> | |
using namespace std; | |
#include <windows.h> | |
void main() | |
{ | |
cout<<"hello world"<<endl; | |
char buf[] = "好好学习"; | |
int wc = MultiByteToWideChar(CP_ACP,0,buf,sizeof(buf),0,0); |
OlderNewer