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

做企业网站域名需要解析吗关键词推广优化排名如何

做企业网站域名需要解析吗,关键词推广优化排名如何,做区块链的网站,网络正常本章介绍如何使用ios开发出滑动拼图验证码,分别OC代码和swift代码调用 1.导入项目model文件OC代码(下载完整Demo) 2.放入你需要显示的图片 一:OC调用 #import "ViewController.h" #import "CodeView.h"…

本章介绍如何使用ios开发出滑动拼图验证码,分别OC代码和swift代码调用

1.导入项目model文件OC代码(下载完整Demo)
在这里插入图片描述

2.放入你需要显示的图片
在这里插入图片描述

一:OC调用

#import "ViewController.h"
#import "CodeView.h"@interface ViewController () <CodeViewDelegate>
@property (nonatomic, strong) CodeView * codeView;
@end@implementation ViewController- (void)viewDidLoad {[super viewDidLoad];// Do any additional setup after loading the view, typically from a nib._codeView = [[CodeView alloc]initWithFrame:self.view.frame];[self.view addSubview:_codeView];_codeView.delegate = self;_codeView.passDistance = 2;self.view.backgroundColor = [UIColor colorWithRed:1 green:1 blue:1 alpha:0.8];
}- (void)codeViewAuthenticationResult:(BOOL)result
{NSLog(@"验证%@通过", result ? @"" : @"不");
}- (void)viewWillAppear:(BOOL)animated
{[super viewWillAppear:animated];[_codeView setCodeImage:[UIImage imageNamed:@"testB.jpg"]];
}- (void)didReceiveMemoryWarning {[super didReceiveMemoryWarning];// Dispose of any resources that can be recreated.
}@end

二:swift调用

import UIKitclass MeViewController: BaseViewController,CodeViewDelegate{private var codeView = CodeView()private let meView = MeView()override func initData() {// 显示自定义视图弹窗showCustomPopup()}// 显示自定义视图弹窗func showCustomPopup() {// 实例化自定义视图codeView = CodeView(frame: CGRect(x: 0, y: 0, width: ALERTVIEW_WIDTH - 150, height: ALERTVIEW_HEIGHT))// 设置自定义视图的样式和内容// 添加到当前视图控制器的视图上//let customView = CodeView(frame: self.view.frame)
//            self.view.addSubview(codeView)codeView.delegate = selfcodeView.passDistance = 2// 设置自定义视图的布局约束,可以根据需要进行调整codeView.center = self.view.centercodeView.setCodeImage(UIImage(named: "testA.jpg"))meView.addSubview(codeView)// 添加点击背景关闭弹窗的逻辑(可选)let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissCustomPopup))codeView.addGestureRecognizer(tapGesture)}// 点击背景关闭弹窗的逻辑(可选)@objc func dismissCustomPopup() {// 移除自定义视图self.view.subviews.forEach { subview inif subview is CodeView {subview.removeFromSuperview()}}}func codeViewAuthenticationResult(_ result: Bool) {print("code%@ == ",result)}
}
http://www.hrbkazy.com/news/22920.html

相关文章:

  • wordpress 录音成都百度快照优化排名
  • 企业代码查询平台廊坊seo排名外包
  • 网站建设搜索代码关键词查询
  • 番禺网站建设怎么样域名解析ip138在线查询
  • 松阳建设网站弹窗广告最多的网站
  • php制作电影网站销售策略和营销策略
  • 正规网站制作公司是哪家关键词优化百家号
  • 天津专业网站设计外贸seo软件
  • 做优惠券网站如何引流seo课程多少钱
  • 无货源网店是真的吗武汉seo认可搜点网络
  • 摄影网站怎么做太原自动seo
  • 沈阳做网站哪家便宜网站推广优化的方法
  • app 微商城网站建设网站软件下载
  • 自己做国外网站东莞日增感染人数超25万
  • 微网站建设找哪家公司怎么建立网站的步骤
  • 哪里有网站开发服务网络广告投放方案
  • 大连网站建站广告公司图片
  • 网站seo技巧品牌网站建设解决方案
  • 怎么登录小程序平台宁波网络推广优化方案
  • 为了推出企业网站建设关键词排名怎么做好
  • wordpress模板+bridge网站为什么要seo?
  • 精神文明建设专题网站搜索引擎优化的主要工作有
  • 请问哪个网站可以做当地向导搜索引擎营销方案
  • 还有其他做问卷的网站吗百度关键词排名
  • 软件开发与设计做seo的公司
  • 网站换空间要重新备案吗看书网站排名
  • 自己注册网站网络舆情管理
  • 企业 网站 建设 规范友情链接多少钱一个
  • 查看网站备案信息谷歌商店app下载
  • 关于小城镇建设网站网站seo外链建设