English 中文(简体)
如何将Layar行动连接到我的客户ViewCovernor?
原标题:How to connect Layar actions to my customViewController?

这是我的情况:

我创造了一个层 找到视野定位器 我将iPhone Layar玩家SDK 融入了iPhone应用程序

When I find a POI I get an icon "info" on the POI framed. Clicking on the icon I want to connect it to a view controller that i created to show the details for this POI.

How can i set the URI actions to link the icon to a view controller? In the documentation there are no examples that show this case.

http://layar.com/documentation/browser/api/getpois-response/ actions/#actions/#actions-uri" rel=“no follow'>http://layar.com/document/browser/api/getpois-responses/ actions/#actions-uri

谢谢你的回答

问题回答

You can not connect directly your Layar with a ViewController. It´s impossible to join a POI in Layar with your ViewController. You can connect a POI with a Website, a video, a sound,... If you want to play with ViewControllers and Augmented Reality, I d advise you to use Metaio SDK. It´s free with the watermark and you can do more than with Layar.

我对SDK并不熟悉,不幸的是, actions documents 显然已经过时。然而,假设文件正确,你必须能够将请求发送到包装应用程序,并在 UIApperation OpenURL: /code > 拦截,并将URL参数传送到你的显示-infod方法(见>< 回答 < a/a>。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...