摘要: public static T CreateObject(string className){ var typeName=assemblyString+"."+className; var objType=(T)Assembly.Load(assemblyString).CreateInstance(typeName);} 阅读全文
posted @ 2012-02-24 09:31 凡娃软件 阅读(451) 评论(0) 推荐(0) 编辑
摘要: %@ Object%d, %i signed int%u unsigned int%f float/double%x, %X hexadecimal int%o octal int%zu size_t%p pointer%e float/double (in scientific notation)%g float/double (as %f or %e, depending on value)%s C string (bytes)%S C string (unichar)%.*s Pascal string (requires two arguments, pass pstr[0] as t 阅读全文
posted @ 2012-02-15 17:46 凡娃软件 阅读(452) 评论(0) 推荐(1) 编辑
摘要: str=[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 阅读全文
posted @ 2012-02-15 13:01 凡娃软件 阅读(758) 评论(0) 推荐(0) 编辑
摘要: //asp.net中的web.config中,需要开启get方式或者post方式<system.web> <webServices> <protocols> <add name="HttpSoap"> <add name="HttpPost"> <add name="HttpGet"> <add name="Documentation"> </protocols> </webService></syst 阅读全文
posted @ 2012-02-15 10:23 凡娃软件 阅读(764) 评论(0) 推荐(0) 编辑
摘要: -(IBAction)addPicEvent{ UIImagePickerControllerSourceType sourceType=UIImagePickerControllerSourceTypeCamera; if (![UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { sourceType=UIImagePickerControllerSourceTypePhotoLibrary; } UIImagePickerController * pi... 阅读全文
posted @ 2012-02-15 10:05 凡娃软件 阅读(1430) 评论(1) 推荐(0) 编辑
摘要: 先添加一个委托_webView.delegate=self;出现if (alertView==nil){ alertView = [[UIAlertViewalloc] initWithTitle:nil message: @"正在讀取網路資料" delegate: self cancelButtonTitle: nil otherButtonTitles: nil]; UIActivityIndicatorView *a... 阅读全文
posted @ 2012-02-14 17:36 凡娃软件 阅读(517) 评论(0) 推荐(0) 编辑
摘要: -(IBAction)btnStartClick{ proValue=0; timer = [NSTimerscheduledTimerWithTimeInterval:0.001target:selfselector:@selector(changeProgress) userInfo:nilrepeats:YES];}-(void)changeProgress{ proValue +=1.0; if(proValue > 1500) { //停用计时器 [timer invalidate]; } else { [proView setProgres... 阅读全文
posted @ 2012-02-14 14:44 凡娃软件 阅读(651) 评论(0) 推荐(0) 编辑
摘要: thOne=[[NSThreadalloc]initWithTarget:selfselector:@selector(run) object:nil];[thOne start];-(void)run{ //代码} 阅读全文
posted @ 2012-02-14 14:14 凡娃软件 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 模拟器有这个问题,真机不会,经试验是TextField的Correction属性引起的,把这个属性设为NO就好了 阅读全文
posted @ 2012-02-14 12:00 凡娃软件 阅读(436) 评论(0) 推荐(1) 编辑
摘要: 挡住的处理事件地址在:http://www.cnblogs.com/fanwa/archive/2012/02/14/2350667.html以下是还原的处理事件:注册监听事件:[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboardWillBeHidden:) name:UIKeyboardWillHideNotificationobject:nil];事件代码:- (void)keyboardWillBeHidden:(NSNotification*)aNotification { .. 阅读全文
posted @ 2012-02-14 11:32 凡娃软件 阅读(409) 评论(0) 推荐(0) 编辑