上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 首先,你应该判断你的两台域控制器,哪一台担任PDC角色(默认的域内权威的时间服务源)。判断方法很简单,单击“开始”,单击“运行”,键入dsa.msc,然后点确定。这时会打开“Active Directory 用户和计算机”的窗口,然后右键点击左窗口中的域名,选择“操作主机(M)...”,这时会弹出这台服务器的操作主机“RID、PDC、结构”三个页面,每页中都写着各操作主机相对应的服务器名。确定好哪台是PDC角色后,在PDC的那台服务器上,用管理员权限运行CMD,在CMD中执行以下命令:w32tm /config /manualpeerlist:{}, 0x8 /syncfromflags:MA 阅读全文
posted @ 2011-10-27 17:56 KID 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 2 down vote I was seeing memory issues as well, but in a slightly different capacity with a UIScrollView. It appears that the [UIColor scrollViewTexturedBackgroundColor] property consumes a very significant amount of memory when your UIScrollView subclass, including UIWebView, app... 阅读全文
posted @ 2011-09-01 17:25 KID 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 史上最简单得多选uitableview,只需一句话 去年无意中发现,以为大家都知道得。。。。- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{return UITableViewCellEditingStyleDelete | UITableViewCellEditingStyleInsert;}关于如何取得所选择的行,两个办法1)通过delegate方法didselect和diddeselect来... 阅读全文
posted @ 2011-08-31 15:11 KID 阅读(378) 评论(0) 推荐(1) 编辑
摘要: class MemoryTool { public: static natural_t print_free_memory () { mach_port_t host_port; mach_msg_type_number_t host_size; vm_size_t pagesize; host_port = mach_host_self(); host_size = sizeof(vm_statistics_data_t) / sizeof(integer_t); host_page_size(host_port, &pagesize); vm_statistics_data_t v 阅读全文
posted @ 2011-08-15 17:08 KID 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 转自:http://fei263.blog.163.com/blog/static/927937242009526112420548/- (NSString *)URLEncodedString:(NSString *)string{NSString *result = (NSStrin*)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,(CFStringRef)string,NULL,CFSTR("!*'();:@&=+$,/?%#[]"),kCFStringEncodingUTF8) 阅读全文
posted @ 2011-08-11 16:09 KID 阅读(787) 评论(0) 推荐(0) 编辑
摘要: ItemUpdated event happening twice when you force Check Out optionWell, today at work, I was really confused why ItemUpdated event in the Document Library was getting called twice. Debugging, it appears that the ItemUpdating event or the ItemUpdated event occurs two times when you enable the Require. 阅读全文
posted @ 2011-08-11 11:04 KID 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Cocoa并不支持正则表达式,如果我们想在我们的程序中使用正则表达式该如何做到呢?有办法,使用RegexKitLite这个第三方工具。 首先下载RegexKitLite的类库。 还要记得在工程中添加libicucore.dylib frameworks。 下面就可以使用了,在下载的压缩文件中有例子,也可以看RegexKitLite介绍。例子代码:NSString *email = @”aiw3_mail@163.com”;[email isMatchedByRegex:@"\\b([a-zA-Z0-9%_.+\\-]+)@([a-zA-Z0-9.\\-]+?\\.[a-zA-Z]{2 阅读全文
posted @ 2011-08-10 14:10 KID 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、若将一个view作为子视图添加到window中,则当设备的方向变换时,该视图不会随之变化,也就是所不会响应设备的方向变化事件。如:“图片放大视图”,“报纸选择视图”...要使其响应方向变化事件,最好是将该视图添加到一个视图中而不是window中。2、通过Interface Builder创建的视图默认的背景色是白色的,要使得该视图透明,可以将其背景色改为clearcolor。3、再viewcontroller的viewdidload方法中,self.view一直是nil的。所以在viewdidload中使用[uiactionsheet showinview:self.view];就会使程序 阅读全文
posted @ 2011-08-04 12:12 KID 阅读(217) 评论(0) 推荐(0) 编辑
摘要: if(delegate!=nil) { if ([delegate respondsToSelector:ItemClicked]) { [delegate performSelector:ItemClicked]; } } 阅读全文
posted @ 2011-08-02 14:41 KID 阅读(171) 评论(0) 推荐(0) 编辑
摘要: // 监测网络情况 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil]; hostReach = [[Reachability reachabilityWithHostName:@"www.google.com"] retain]; [hostReach startNotifier];- (void)reachabilityChang 阅读全文
posted @ 2011-08-02 14:11 KID 阅读(341) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页