当我按照说明通过xml将广告添加到我的应用中时,出现以下错误:
Description Resource Path Location Type
error: No resource identifier found for attribute 'adSize' in package 'com.google.example' main.xml /HelloWorld/res/layout line 12 Android AAPT Problem
Description Resource Path Location Type
error: No resource identifier found for attribute 'adUnitId' in package 'com.google.example' main.xml /HelloWorld/res/layout line 12 Android AAPT Problem
Run Code Online (Sandbox Code Playgroud)
我编辑了main.xml,添加attrs.xml文件,但编译器不喜欢它.
在我的应用程序中,有三个故事板。我想知道的是如何在视图控制器代码中获取故事板 ID/名称,因为 UIStoryBoard init func 采用第一个参数名称:String。它存储在哪里以及如何访问它?