![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
文章平均质量分 56
ljzza
.....................
展开
-
pod的使用方法
pod的使用方法原创 2016-09-12 15:18:05 · 1025 阅读 · 0 评论 -
隐藏tabbar和显示tabbar
//隐藏tabbar- (void)hideTabBar { if (self.tabBarController.tabBar.hidden == YES) { return; } UIView *contentView; if ( [[self.tabBarController.view.subviews原创 2016-10-20 13:39:20 · 1039 阅读 · 0 评论 -
MJRefresh的使用
-(void)viewWillAppear:(BOOL)animated{ // 马上进入刷新状态 [self.homeTableView.mj_headerbeginRefreshing];}下拉刷新01-默认self.homeTableView.mj_header = [MJRefreshNormalHeaderheade原创 2016-10-13 20:40:25 · 661 阅读 · 0 评论 -
视图间切换的时候的动画效果
push出来的时候:MainView *nextView=[[MainView alloc] init]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:原创 2016-09-27 09:41:10 · 173 阅读 · 0 评论 -
标签添加中划线
出现场景:商品打折,原价和打折之后的价格同时出现,这时原价需要打下划线或者中划线 self.oldPriceLabel.text =@"99999.9"; NSString *textStr = [NSStringstringWithFormat:@"%@",self.oldPriceLabel.text]; //中划线原创 2016-10-22 13:10:00 · 696 阅读 · 0 评论 -
方法传值
Controller1:- (IBAction)btnClick:(id)sender { NSString *code =_DMTextField.text; FouthViewController *fouth = [[FouthViewControlleralloc]initWithValue:code]; [se原创 2016-10-10 13:48:18 · 150 阅读 · 0 评论 -
协议传值
Controller1:@interface FiveViewController ()SixViewControllerDelegate>- (IBAction)btnClick:(id)sender { SixViewController *six = [[SixViewControlleralloc]init]; six.delegat原创 2016-10-10 13:52:07 · 159 阅读 · 0 评论 -
通知中心传值
通知中心传值:controller1:-(void)btnClick:(UIButton *)btn{ OneViewController *oVC = [[OneViewControlleralloc]init]; [self.navigationControllerpushViewController:oVC animated:Y原创 2016-10-10 13:25:17 · 167 阅读 · 0 评论 -
获取appdelegate对象
一般系统需要一些全局变量的时候直接在AppDelegate里面定义就好在文件中导入#import "AppDelegate.h"头文件 AppDelegate * appDelegate = (AppDelegate*)[UIApplicationsharedApplication].delegate;现在就可以获取AppDelegate中的所有成员变原创 2016-12-05 23:18:04 · 404 阅读 · 0 评论