1 字符串中查出保函某个字节
NSArray *array =@[@"123",
@"234" , @"345"];
NSPredicate *predicate = [NSPredicate
predicateWithFormat:@"SELF contains [cd] %@",
"2"];
NSArray *filterdArray = [arr...
分类:
其他好文 时间:
2014-11-06 17:44:00
阅读次数:
178
线程锁#!/usr/bin/pythonimportthreadingimporttimeclassMyThread(threading.Thread):def__init__(self,threadname):threading.Thread.__init__(self,name=threadname)设定线程名称defrun(self):globalxlock.acquire()加锁foriinrange(3):x=x+1time.sleep(2)printxlock.release..
分类:
编程语言 时间:
2014-11-06 15:03:13
阅读次数:
151
Free Metasploit editions and trials of commercial Metasploit editions are self-supported by the user community. You can ask questions here, in the for...
分类:
Web程序 时间:
2014-11-06 12:48:26
阅读次数:
461
html5离线应用详摘在html文件里配置如下:在name.manifest文件里配置如下:CACHEMANIFEST#2014-07-27v1.0index.htmlindex.cssindex.jsimages/self.jpgNETWORK*①CACHEMANIFEST全部大写。②“#”开头的...
分类:
Web程序 时间:
2014-11-06 12:42:04
阅读次数:
197
//点击搜索框时触发- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar{ self.theSearchUserSearchBar.showsCancelButton = YES; //很关键 UIView *topView ...
分类:
其他好文 时间:
2014-11-06 12:19:10
阅读次数:
165
//创建button遮挡 UIButton *cover = [[UIButton alloc]initWithFrame:self.view.frame]; [cover setBackgroundColor:[UIColor blackColor]]; cover.alpha ...
分类:
其他好文 时间:
2014-11-06 09:20:09
阅读次数:
205
UIDeviceOrientationorientation;orientation=[[UIDevicecurrentDevice]orientation];switch(orientation){caseUIDeviceOrientationFaceUp:self.orientationLabel.text=@"FaceUp";break;caseUIDeviceOrientationFaceDown:self.orientationLabel.text=@"FaceDown";break;caseUID..
分类:
移动开发 时间:
2014-11-06 02:10:21
阅读次数:
174
//创建按钮UIButton*button=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];//设置按钮标题[buttonsetTitle:@"触摸我!"forState:UIControlStateNormal];//根据标题长度自动决定按钮尺寸[buttonsizeToFit];//将按钮布置在中心位置button.center=self.view.center;//画面变化..
分类:
移动开发 时间:
2014-11-06 02:10:06
阅读次数:
166
一、Java中的this只能用在动态方法中,不能用在静态方法中1.在动态方法中使用this关键字1 public class Student {2 private int age;3 public void setAge(int age) {4 this.age = ...
分类:
其他好文 时间:
2014-11-05 23:00:35
阅读次数:
276
UIView *topLayoutGuide = self.topLayoutGuide;NSDictionary *viewsDictionary = NSDictionaryOfVariableBindings(selectBuuton, itemTableView, itemCollectio...
分类:
其他好文 时间:
2014-11-05 22:51:19
阅读次数:
225