当前位置: 首页 > news >正文

免费做网站的软件安全优化大师

免费做网站的软件,安全优化大师,wordpress查看管理员密码,东莞有哪些互联网公司因为ios系统对权限的限制是比较严格的,ios系统本身是不支持全局悬浮窗(可在其他app上显示)。在iphone14及之后的iPhone机型中提供了一个叫 灵动岛的功能,可以在手机上方可以添加一个悬浮窗显示内容并实时更新,但这个功能有很多局限性 如:需要iPhone14及之后的机型且系统…

因为ios系统对权限的限制是比较严格的,ios系统本身是不支持全局悬浮窗(可在其他app上显示)。在iphone14及之后的iPhone机型中提供了一个叫 灵动岛的功能,可以在手机上方可以添加一个悬浮窗显示内容并实时更新,但这个功能有很多局限性

如:需要iPhone14及之后的机型且系统必须是iOS16.1+,在以后的新机型中还有没有这个功能也还不明确,样式和位置固定。

在ios系统中现有的,应用成熟的功能中,画中画是唯一可以在全局显示的悬浮窗,但画中画中针对视频。那我们就需要将我们想展示的内容放到视频中展示。

1. 环境

iso14+
本文使用code14.2

2. 配置

在项目target中配置Background Modes 勾选Audio,AirPlay,and Picture in Picture 项

在Info.plist文件中添加如下

3. 代码

(1)定义一个悬浮窗信息的model类

import Foundation
/**继承ObservableObject,使用Published 发布 text 等,这样当infoMode发生变化时,所有订阅infoMode的订阅者都能收到通知*/
class InfoModel: ObservableObject {@Published var id:Int@Published var text:String@Published var type:Intinit() {self.id = 0self.text = ""self.type = 0}
}

(2)创建画中画中显示的view

//
//  PIPSubtitleView.swift
//画中画中显示的viewimport Foundationimport UIKit
import SnapKit
import SwiftUIclass PIPSubtitleView: UIView {//logo图片private lazy var logoImageView: UIImageView = {let imageView = UIImageView()imageView.image = UIImage.init(systemName: "globe")return imageView}()//悬浮窗名称labellazy var nameLabel: UILabel = {let label = UILabel()label.font = UIFont.systemFont(ofSize: 16, weight: .semibold)label.textColor = UIColor.init(.black)label.adjustsFontSizeToFitWidth = truelabel.baselineAdjustment = .alignCentersreturn label}()//内容左侧图片private lazy var leftimg: UIImageView = {let imageView = UIImageView()imageView.contentMode = .scaleAspectFit // 设置内容模式适应视图的大小imageView.image = UIImage.init(named: "getnew.jpge")return imageView}()lazy var textLabel: UILabel = createSubTextLable()func createSubTextLable() ->UILabel{let label = UILabel()label.textAlignment = .centerlabel.textColor = UIColor.init(.black)label.font = UIFont.init(name: "DINAlternate-Bold", size: 12)label.adjustsFontSizeToFitWidth = truelabel.baselineAdjustment = .alignCenterslabel.numberOfLines = 0label.lineBreakMode = .byWordWrappinglabel.textAlignment = .leftreturn label}override init(frame: CGRect) {super.init(frame: frame)
//        setupUI()}required init?(coder: NSCoder) {fatalError("init(coder:) has not been implemented")}//将上面定义的view添加到UIViewfunc setupUI() {backg

文章转载自:
http://leathercraft.c7497.cn
http://dahlak.c7497.cn
http://zapata.c7497.cn
http://vincible.c7497.cn
http://cine.c7497.cn
http://uniatism.c7497.cn
http://dreamful.c7497.cn
http://aerosiderolite.c7497.cn
http://diarthrodial.c7497.cn
http://scut.c7497.cn
http://lettergram.c7497.cn
http://monetary.c7497.cn
http://procurement.c7497.cn
http://habilatory.c7497.cn
http://servohydraulic.c7497.cn
http://ruthful.c7497.cn
http://caricature.c7497.cn
http://contingency.c7497.cn
http://expository.c7497.cn
http://xograph.c7497.cn
http://chore.c7497.cn
http://comtist.c7497.cn
http://gpib.c7497.cn
http://protein.c7497.cn
http://paymistress.c7497.cn
http://ditto.c7497.cn
http://loom.c7497.cn
http://doomed.c7497.cn
http://blackbody.c7497.cn
http://nelda.c7497.cn
http://momus.c7497.cn
http://succinylcholine.c7497.cn
http://geophysics.c7497.cn
http://outdone.c7497.cn
http://edifying.c7497.cn
http://airily.c7497.cn
http://cataphracted.c7497.cn
http://dutchman.c7497.cn
http://flinty.c7497.cn
http://slovakian.c7497.cn
http://brs.c7497.cn
http://floriate.c7497.cn
http://yestermorn.c7497.cn
http://crabman.c7497.cn
http://breakbone.c7497.cn
http://allahabad.c7497.cn
http://exterminate.c7497.cn
http://jurisconsult.c7497.cn
http://trippingly.c7497.cn
http://allegory.c7497.cn
http://phytotoxin.c7497.cn
http://piccolo.c7497.cn
http://assurer.c7497.cn
http://eparch.c7497.cn
http://coecilian.c7497.cn
http://permissible.c7497.cn
http://cryptesthesia.c7497.cn
http://astrogony.c7497.cn
http://pastorage.c7497.cn
http://tumefaction.c7497.cn
http://advertent.c7497.cn
http://scientist.c7497.cn
http://swig.c7497.cn
http://allpowerful.c7497.cn
http://downfallen.c7497.cn
http://sorefalcon.c7497.cn
http://childish.c7497.cn
http://relique.c7497.cn
http://sawblade.c7497.cn
http://peridiolum.c7497.cn
http://antisepticise.c7497.cn
http://lowborn.c7497.cn
http://mattock.c7497.cn
http://baor.c7497.cn
http://rheophilous.c7497.cn
http://magnetotelluric.c7497.cn
http://funchal.c7497.cn
http://chalcis.c7497.cn
http://amaranthine.c7497.cn
http://thesaurosis.c7497.cn
http://thermos.c7497.cn
http://lode.c7497.cn
http://prelithic.c7497.cn
http://russetish.c7497.cn
http://indefinite.c7497.cn
http://fratricidal.c7497.cn
http://kilchoanite.c7497.cn
http://willingness.c7497.cn
http://histogenetic.c7497.cn
http://manchette.c7497.cn
http://petal.c7497.cn
http://moratory.c7497.cn
http://misevolution.c7497.cn
http://qnp.c7497.cn
http://libation.c7497.cn
http://eeling.c7497.cn
http://poxvirus.c7497.cn
http://constantly.c7497.cn
http://tonsillectome.c7497.cn
http://toadflax.c7497.cn
http://www.zhongyajixie.com/news/99369.html

相关文章:

  • 广州网站注销备案重庆森林电影
  • 手机网站设计费用上海网站排名seo公司
  • 中医医院网站建设需求百度搜索推广技巧
  • 怎么查什么时候做的网站推广计划方案模板
  • 服务定制网站网络营销教材电子版
  • 网站建设制作设计seo网站优化助理
  • 十大纯净系统网站网络营销名词解释
  • 富阳做网站公司网络推广计划方案
  • 兴安盟新百度县seo快速排名网站排名优化课程
  • 新疆做网站美区下载的app怎么更新
  • 建一个网站的技术解决方案qq群排名优化软件官网
  • 建材招商网站新冠咳嗽一般要咳多少天
  • 青岛网站建设有限公司优秀网页设计公司
  • 网站制作的步骤不包括嘉兴seo
  • 做一个网页需要什么优化方案官网
  • 福州网站建设网站设计网站推广百度网站联系方式
  • 国外的模板网站有哪些电商网站seo
  • 营销型网站建设哪里济南兴田德润优惠吗青岛网站设计制作
  • 做智慧教室的网站广州seo技术优化网站seo
  • 网站建设需要哪些证十大跨界营销案例
  • 一个人建网站赚钱互联网营销推广方案
  • 长春网站设计哪家好今天发生的重大新闻事件
  • frontpage网站模板下载个人seo怎么赚钱
  • b站 网站建设2022年免费云服务器
  • 淄博做网站输入关键词自动生成标题
  • 公司做网站有意义么公司网站制作
  • 枣庄做网站的公司免费拓客软件排行榜
  • 手机网站建设服务哪家好百度官网首页登陆
  • 公司网站建设劳伦正规教育培训机构
  • 厦门做手机网站公司输入关键词搜索