小编Anu*_*pta的帖子

如何在UIAlertController中添加按钮在IOS 9中

我们如何UIAlertView在iOS 9中使用以及如何添加按钮UIAlertController

UIAlertController * alert=[UIAlertController 

alertControllerWithTitle:@"Title" message:@"Message"preferredStyle:UIAlertControllerStyleAlert];

UIAlertAction* yesButton = [UIAlertAction
                        actionWithTitle:@"Yes, please"
                        style:UIAlertActionStyleDefault
                        handler:^(UIAlertAction * action)
                        {
                            **//What we write here????????**


                        }];
UIAlertAction* noButton = [UIAlertAction
                            actionWithTitle:@"No, thanks"
                           style:UIAlertActionStyleDefault
                           handler:^(UIAlertAction * action)
                           {
                               **//What we write here????????**

                           }];

[alert addAction:yesButton];
[alert addAction:noButton];

[self presentViewController:alert animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)

iphone objective-c ios uialertcontroller

11
推荐指数
2
解决办法
3万
查看次数

为什么Crashlytics每次都要求丢失DSYM文件?

我在应用程序中使用Crashlytics,一切正常。甚至Crashlytics也运作良好。

但是问题是,每当我为我们的应用程序创建新版本时,它都会再次显示缺少的DSYM文件上载新内容。

有什么解决办法吗?

在Fabric Document中,我发现了这一点。但我不明白这一点。

谁能向我解释如何解决此问题?

https://docs.fabric.io/apple/crashlytics/advanced-setup.html

在此处输入图片说明

xcode ios crashlytics google-fabric

6
推荐指数
3
解决办法
3208
查看次数

在wix中反应原生导航V2如何将数据从一个屏幕传递到另一个屏幕

我在我们的Native Native应用程序中使用Wix反应本机导航V2.我遇到的问题是将数据从一个屏幕传递到另一个屏幕.第一个屏幕包含FLATLIST,当我选择FLATLIST行时,我需要导航并在另一个屏幕上传递行数据.

这是我的代码:

屏幕1:

此代码显示FLATLIST上的行数据(工作正常)

_renderItem = ({ item }) => {
    const text = `${item}`;
    return (
      <TouchableOpacity onPress={() => this.moveToAnotherScreen(item)}>
        <View style={styles.cardView}>
          <Text style={styles.item2}>{item.name}</Text>
          <Text style={styles.item2}>{item.Type}</Text>
          <Text style={styles.item2}>{item.mobile}</Text>

        </View>
      </TouchableOpacity>
    );
  };
Run Code Online (Sandbox Code Playgroud)

这是moveToAnotherScreen函数

moveToAnotherScreen(item) {
    Navigation.push(this.props.componentId, {
      component: {
        name: 'ShowAnotherScreen',

      },
      passProps: {
        data: item
    }
    });
  }
Run Code Online (Sandbox Code Playgroud)

屏幕2:

componentDidMount() {

    const params  = this.props.data
    console.log('params', params);
  }
Run Code Online (Sandbox Code Playgroud)

reactjs react-native react-native-navigation

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