小编coo*_*tts的帖子

iOS 上已弃用的 -undefined dynamic_lookup - Xcode

我正在尝试在 Xcode 中创建一个新应用程序,其中我使用 Firebase 作为后端。在我制作的其他应用程序中,我还没有使用 CocoaPods,但是为了在这个应用程序中使用 Firebase,我需要通过 Podfile 安装它。我遵循了 Firebase 的指示,而且一切都是最新的。当我创建项目时,一切都很好,但是在创建工作区并在 Xcode 中启动它之后,我收到一条警告,提示 -undefined dynamic_lookup 在 iOS 上已折旧。有谁知道如何解决这个警告?我的 podfile 看起来像这样:

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!

target 'BodyComp' do
pod 'Firebase', '>= 2.5.1'
end

target 'BodyCompTests' do

end

target 'BodyCompUITests' do

end
Run Code Online (Sandbox Code Playgroud)

干杯

xcode cocoapods firebase swift

5
推荐指数
0
解决办法
929
查看次数

flexbox 中的 Bootstrap 列不会在较小的屏幕上换行

我的网站有一个部分,我在 2 个 div 和一个a标签上使用下面的 CSS ,以便使内容在中心垂直对齐。

问题在于,对于 flex 样式属性,当窗口小于 768px 时,理想情况下,内容会改变布局,并且每个内容col-md-4都会堆叠在一起。

这并没有发生,相反,这些列变得非常细小并且仍然并排显示。有没有什么办法解决这一问题?最好尽量远离表格单元格格式

.about-us-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-us-nav a {
    font-size: 20px;
    color: #52361D;
    background-color: #885A31;
    border-color: #52361D;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-help-container {
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position:absolute;
    z-index: 2;
}
Run Code Online (Sandbox Code Playgroud)

html css flexbox twitter-bootstrap

3
推荐指数
1
解决办法
7656
查看次数

Java methood split()不使用逗号,数组超出范围

我试图分隔用逗号分隔的用户输入的地址字符串.例如,如果用户输入地址

"4367, 56th Avenue, Vancouver, BC, V4K1C3"

我希望和数组一起使用值

array ["4376", "56th Avenue", "Vancouver", "BC", "V4K1C3"]

使用索引0到4.但是,当我在我的一个类中实现它时,当我将值array[1]赋给变量时,我不断得到一个数组超出边界的错误- 好像所有内容都进入了数组的0索引.这是我写的一个片段,说明了这个问题:

import java.util.Scanner;

public class Test {
   public static void main(String[] args) {
      Scanner input = new Scanner(System.in);

  String fullAddress = input.next();

  String[] arr = fullAddress.split(",");

  System.out.println(arr[0]);
  System.out.println(arr[1]); //error java.lang.ArrayIndexOutOfBoundsException: 1
  System.out.println(arr[2]);
  System.out.println(arr[3]);
  System.out.println(arr[4]);


 }
}
Run Code Online (Sandbox Code Playgroud)

这里出了什么问题?

java arrays indexing split

2
推荐指数
1
解决办法
685
查看次数

标签 统计

arrays ×1

cocoapods ×1

css ×1

firebase ×1

flexbox ×1

html ×1

indexing ×1

java ×1

split ×1

swift ×1

twitter-bootstrap ×1

xcode ×1