摘要: 这篇英文较简单,就懒得翻译了。If you have ever written an iPhone app that requires numeric input,then you surely know about the UIKeyboardTypeNumberPad. And if you haveever used that flavor of the iPhone's keyboard, then you surely knowthat it lacks one very important feature: The UIKeyboardTypeNumberPaddoes n 阅读全文
posted @ 2011-05-27 16:41 s80895304 阅读(321) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/KiloNet/archive/2010/08/24/1807323.html当文本输入时, 文本框有几中选择用于辅助输入:textField.clearButtonMode=UITextFieldViewModeWhileEditing;Java代码typedefenum{UITextFieldViewModeNever,//clearbutton永远不出现UITextFieldViewModeWhileEditing,//编辑的时候出现UITextFieldViewModeUnlessEditing,//未编辑的时候出现UITextFieldV 阅读全文
posted @ 2011-05-27 16:37 s80895304 阅读(472) 评论(0) 推荐(0) 编辑
摘要: - (NSString *)URLEncodedString:(NSString *)string{ NSString *result = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string,NULL,CFSTR("!*'();:@&=+$,/?%#[]"),kCFStringEncodingUTF8); [result autorelease]; return result; } //生成nonce - (NSString 阅读全文
posted @ 2011-05-27 16:36 s80895304 阅读(618) 评论(0) 推荐(1) 编辑