07 2012 档案
摘要:转自 http://bukkake.iteye.com/blog/954259规范上NSString做属性都是写成copy的,理论上应该是复制了字符串而不是单纯的增加引用计数,其实问题只会出现在把NSMutableString赋值给NSString的时候。View Code1@interfaceDemo:NSObject2{3NSString*retainString;4NSString*copyString;5}67@property(nonatomic,retain)NSString*retainString;8@property(nonatomic,copy)NSString*copyS
阅读全文
摘要:今天下午17点左右,博客园博客站点出现这样的错误信息: Error Summary: HTTP Error 503.2 - Service Unavailable The serverRuntime@appConcurrentRequestLimit setting is being exceeded. Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler StaticFile Error Code 0x00000000 由于之前使用的是默认配置,服务器最多只能处理5000个同...
阅读全文
摘要:UIAlertTableView.h #import<UIKit/UIKit.h>@classUIAlertView;@interfaceUIAlertTableView:UIAlertView{UIAlertView*alertView;UITableView*tableView;inttableHeight;inttableExtHeight;id<UITableViewDataSource>dataSource;id<UITableViewDelegate>tableDelegate;}@property(nonatomic,assign)iddata
阅读全文
摘要:http://stackoverflow.com/questions/3028845/uiviewcontroller-remove-subview找来的删除子视图的代码 I add a view as subview of my uiviewcontroller like this:// into my ViewController:UIImageView *imView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"img.jpg"]];imView.frame = CGRectMake(2, 46,
阅读全文
摘要:openURL的使用方法:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];其中系统的appString有:1.Map http://maps.google.com/maps?q=Shanghai2.Email mailto://myname@google.com3.Tel tel://100864.Msg sms://10086openURL能帮助你运行Maps,SMS,Browser,Phone甚至其他的应用程序。这是iPho...
阅读全文