随笔分类 -  IOS基础

摘要:-(void)upload_attach:(NSData*)datafileName:(NSString*)filenamemimeType:(NSString*)mtype{AFHTTPClient*httpClient;MBProgressHUD*hud=[[MBProgressHUDallo... 阅读全文
posted @ 2015-01-28 17:00 我去ios 阅读(183) 评论(0) 推荐(0)
摘要:label.font=[UIFontfontWithName:@"Arial-BoldItalicMT"size:24];字体名如下:Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-Bo... 阅读全文
posted @ 2015-01-20 18:01 我去ios 阅读(186) 评论(0) 推荐(0)
摘要:app尺寸,去掉状态栏CGRectr = [UIScreenmainScreen ].applicationFrame;r=0,20,320,460屏幕尺寸CGRectrx = [UIScreenmainScreen ].bounds;r=0,0,320,480状态栏尺寸CGRectrect;rec... 阅读全文
posted @ 2015-01-19 16:26 我去ios 阅读(720) 评论(0) 推荐(0)
摘要:UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; [btn setFrame:CGRectMake(0, ver_start_point, 320, grid_H*3+15+matrix.frame.si... 阅读全文
posted @ 2015-01-15 18:38 我去ios 阅读(397) 评论(0) 推荐(0)
摘要:step1.h文件中声明实现step2.m文件中//单击的Recognizer UITapGestureRecognizer*singleRecognizer;singleRecognizer=[[UITapGestureRecognizeralloc]initWithTarget:selfacti... 阅读全文
posted @ 2015-01-15 17:34 我去ios 阅读(125) 评论(0) 推荐(0)
摘要:使用场景A中调用B页面,在B中用户做了处理后,将数据回传给A第一步,新建passValueDelegate.h #import@protocolPassSelectDelegate-(void)passValue:(NSDictionary*)value;@end第二步,第一个viewcontrol... 阅读全文
posted @ 2014-12-25 09:19 我去ios 阅读(496) 评论(0) 推荐(0)
摘要:第一步:注册NSNotificaiton[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(func:) name:... 阅读全文
posted @ 2014-12-22 17:17 我去ios 阅读(179) 评论(0) 推荐(0)