随笔分类 - IOS基础
摘要:-(void)upload_attach:(NSData*)datafileName:(NSString*)filenamemimeType:(NSString*)mtype{AFHTTPClient*httpClient;MBProgressHUD*hud=[[MBProgressHUDallo...
阅读全文
摘要:label.font=[UIFontfontWithName:@"Arial-BoldItalicMT"size:24];字体名如下:Font Family: American TypewriterFont: AmericanTypewriterFont: AmericanTypewriter-Bo...
阅读全文
摘要:app尺寸,去掉状态栏CGRectr = [UIScreenmainScreen ].applicationFrame;r=0,20,320,460屏幕尺寸CGRectrx = [UIScreenmainScreen ].bounds;r=0,0,320,480状态栏尺寸CGRectrect;rec...
阅读全文
摘要:UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; [btn setFrame:CGRectMake(0, ver_start_point, 320, grid_H*3+15+matrix.frame.si...
阅读全文
摘要:step1.h文件中声明实现step2.m文件中//单击的Recognizer UITapGestureRecognizer*singleRecognizer;singleRecognizer=[[UITapGestureRecognizeralloc]initWithTarget:selfacti...
阅读全文
摘要:使用场景A中调用B页面,在B中用户做了处理后,将数据回传给A第一步,新建passValueDelegate.h #import@protocolPassSelectDelegate-(void)passValue:(NSDictionary*)value;@end第二步,第一个viewcontrol...
阅读全文
摘要:第一步:注册NSNotificaiton[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(func:) name:...
阅读全文
浙公网安备 33010602011771号