记录一下部分方法

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:wechatDownloadUrl]];//打开url相应的app


//导航栏高度

CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame]; UINavigationBar *bar = [self.navigationController navigationBar]; 

CGFloat statusHeight = rectStatus.size.height;

CGFloat barHeight = bar.frame.size.height;

 _NavHeight = barHeight + statusHeight;

你可能感兴趣的:(记录一下部分方法)