美文网首页
开发笔记

开发笔记

作者: a2ebcc3676c1 | 来源:发表于2017-10-11 11:12 被阅读22次

1、警告"All interface orientations must be supported unless the app requires full screen"

  • info.plist中添加"UIRequiresFullScreen - Yes"

2、添加"prefix.pch"文件

  • Precompile Prefix HeaderYES
  • Build Setting - Prefix Header - $(SRCROOT)/项目名/MyProject-prefix.pch
#import <Availability.h>
#ifndef __IPHONE_8_0
#warning "This project uses features only available in iOS SDK 8.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

#import "config.h"
#endif

3、导入 libTalkingDataGA.a

  • 1、Build Settings - Framework Search Paths - $(PROJECT_DIR)/项目名称/SDK
  • 2、导入系统框架:AdSupportCoreTelephonySystemConfigurationlibz.tbd

4、其他设置

  • 隐藏导航条 :UIStatusBarStyle - UIStatusBarStyleDefault
  • ipad隐藏电池 :UIViewControllerBasedStatusBarAppearance - false

相关文章

网友评论

      本文标题:开发笔记

      本文链接:https://www.haomeiwen.com/subject/nrissxtx.html