Objective-C:是否可以检测QR码数据类型? [英] Objective-C : is it possible to detect QR code data type?

查看:117
本文介绍了Objective-C:是否可以检测QR码数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Zxing编写了qr代码,现在我可以读取数据,但是我想要的是:

I did qr code with Zxing, Right now I can read data but what I want is :


  • 示例:能够读取类型的QR码是wifi,电子名片,日历,网址等...
    如果检测到QR码是wifi,那么我就能通过代码更改wifi设置键,

那么,我怎么知道从QR码读取的数据是wifi?

So, how do i know that data read from QR code is wifi?

推荐答案

QR Code本身未指定任何类型。纯文本。它可以是HTTP URL或自定义URL。 (例如,其中应包含 type:// wifi。然后您可以使用它查看类型)。但是现成的,没有这样的东西。您必须知道谁在创建QR码以及他在其中存储的内容。

QR Code itself does not specify any types. Its plain text. It can be an HTTP URL or a custom URL. (e.g. it should have "type://wifi" inside it. You can then use it to see what the type is). But off-the-shelf, there is no such thing. You have to know who is creating the QR Codes and what is he storing in them.

这篇关于Objective-C:是否可以检测QR码数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆