How to connect Layar actions to my customViewController? - iphone

This is my situation:
I created a layer that find Vision-POIs and I integrated the iPhone Layar Player SDK into my iPhone app.
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-uri
Thanks for the answers

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.

I'm not familiar with the SDK and unfortunately the actions documentation is obviously outdated. However assuming the documentation is correct, you must be able to send the request to the wrapping application and intercept it at UIApplication openURL: and pass the URL parameters to your show-info method (see the answer for details).

Related

is there any Apple Direction API?

I need to know, is there any apple direction api by which we can get direction detail between two points(coordinates) same as we can do it via google api.
I need to draw route between two points within app. i do not want to open apple map by using new IOS SDK 6 MKMapItem class.
Thanks
Nope, except you can send the user to the Maps app for directions. You can do this by creating an MKDirectionRequest object.
If you want the user to stay in your app, you need to do the routing yourself, or use a different API.
MKDirections
Apple class ref
Tutorial

Queries before submitting the iPhone project to App market

I have made Map application to locate places in Australia. I am calling web service to fetch the places data and respective detail view. I have some doubts before launching the application to Australian app market.
I have used Apples Reachability classes as it is for showing network/internet unavailability. Is this ok?? Or there is another method for this??
I have used BSForwardGeocoder classes for forward geocoding. from link http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
As I am using UIView to show detail view on annotation callout button by using addsubview method. I did not used navigation controller but still I am giving custom arrow back button on top of detail view
I am reading Human Interface guideline for iPhone application. Still I need suggestion from you. Am I doing right or do I need to change in above three condition. I dont want that my app get rejected by any of this reasons. Thanks in advance.
1.)You have used apple reachability class,to check the network status,You can use that there is no issue with that,your app won't get rejected due to this.
2.)You have used BSForwardGeocoder for geocoding,I think there are no private api calls in this,but do check that is there any private api call.if there would be no Private api call.
There is no issue.So your app won't be rejected.
3.)You are using Views and showing your own arrows to pop and push,but you are not using any navigation controller.Thats fine,thats your own way to handle the views.That won't reject your app.
So cheers and go ahead,but do check that you dont use any private api call in your app.
as that is the maximum reason.
Hope This Will Help You........!

iOS Mapkit - Cache maps?

I need maps of certain areas available when no internet connection is available.
It would be like this:
User loads app internet connection is available
App downloads list of coordinates and places pins on the map
User leaves their house and has no internet connection
Pins and map remain readily available for user to interact with, even without internet connection
How do I do this?
You probably won't use MKMapView and MapKit for that, but the Google Maps Static API that allows you to download static images (even with pins on it) directly.
Here is the example given by the Google Maps API doc itself
Then you can store this image and display it in an UIImageView in a UIScrollView for example.
Possibly the above mentioned Google API achieves just this, but another approach is to create a KML file using Google custom maps or some other service and then download and display it. An example can be found here. Alternatively, MapBox has this functionality built in. Go to this webpage, click command-f and search for "offline", and you will find the relevant information. One last suggestion- as an inelegant hack, if no other option works, you could try saving the html of the google maps webpage for the area and then loading that html file from your main bundle into your map view. I have no idea if that would work, but in a last case scenario it would be worth a shot.

Standard practice for showing a location in IOS - mapkit or link to google map?

I have an app that I want to have a button that will show you the location of somewhere (it's a conference app, so want to show the convention centre on google map). At the moment my link opens up google maps with the long/lat.
My question is, is that standard practice in IOS? or it against some design guideline (seeing as it opens another app). Should I embed a mapkit view instead? I'm under a really tight deadline so don't want to get my app rejected, so thought I'd ask which was the generally accepted practice.
Neither will get your app rejected but using an embedded map will make your users happier. You might also give a button which opens the location in the maps app so the user can get directions.

How to use the camera device in an iPhone app

I am working on an image editing app and therefore googled for it.
I have found some links which says that we can work with camera by ourselves, like here.
They say we can:
capture images from within our app (ColorSplash app)
using accelerometer with camera and some other features
So far my coding doing just opening camera and lets user do the rest.
But I want above listed features... at least the first one.
Can it be done?
i use code from this site to do what your first task do:
http://www.zimbio.com/iPhone/articles/1109/Picking+Images+iPhone+SDK+UIImagePickerController
http://trailsinthesand.com/picking-images-with-the-iphone-sdk-uiimagepickercontroller/
these both were links really helpful.
#Sawan yes you can do the things u want,capturing of image and its selection please take help from here and also u can use accelerometer in the same way we use in our apps