小编Jua*_*igo的帖子

Segue和Button以编程方式迅捷

我正在使用iCarousel,我必须创建自己的按钮.我想将编程按钮中的数据传递给另一个视图,但我没有segue标识符,因为我以编程方式创建了按钮.我不知道是否可以通过编程方式创建segue的标识符.

button.addTarget(self, action: #selector(buttonAction3), for: .touchUpInside)
        button.setTitle("\(titulos[index])", for: .normal)
        tempView.addSubview(button)
        let myImage = UIImage(named: "modo4.png") as UIImage?
        button.setImage(myImage, for: .normal)

let viewController:UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "modo") as! Modo1ViewController
self.present(viewController, animated: false, completion: nil)

if segue.identifier == "" {
        if let destination = segue.destination as? Modo1ViewController {
            destination.nomb = nombres
        }

    }
Run Code Online (Sandbox Code Playgroud)

button segue programmatically-created swift

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

颤抖的视频背景

可以一直播放背景视频吗?

我一直在寻找一些软件包,并试图使其功能,但我不知道如何。

也许使用类似的方法,但使用视频。

decoration: new BoxDecoration(

    image: new DecorationImage(
    image: new AssetImage("images/f1.jpg"),
    fit: BoxFit.cover,
),),
Run Code Online (Sandbox Code Playgroud)

在一个容器内。

video background dart flutter

4
推荐指数
2
解决办法
2579
查看次数

图像选择器颤动网1.9

在新的Flutter Web 1.9上寻找图像选择器。我找到了一种方法,但不到1.9,现在合并了,不知道我怎么能做到这一点。尝试使用dart:html,但无法发布!仅在跑步时

flutter flutter-web

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