Is it possible to customize the look of maps in iPhone. I am unable to do it using the MapKit.framework. Does anyone know how to do it with the existing framework or in any other way?
After a lot of Research I finally found the link of Google api which allow to create your
custom map view.Basically they provide a link which you need to open in web view and it will
return you an image listed the link below :
http://blog.programmableweb.com/2010/05/20/make-your-google-map-stand-out-with-styles/
Thanks
Rohit Sharma
first add the framework
Then make sure to #import
the map is declared like this in a header file:
MKMapView *mapView;
to show the location of the user:
mapView.showsUserLocation = YES;
You can use the MapKit Framework, to add MKMapView to your app.
Yes, it's possible. You can use the MKOverlayView class to draw your own map in a MKMapView.
Related
We're trying to add a GMSMapView to a view controller in our app and the map only shows Google logo but the map itself is not visible
And here's what we've checked so far:
1- We made sure GMSServices.provideAPIKey(apiKey) is called
2- Maps SDK for iOS is enabled on console.cloud.google.com
3- The API Key is not restricted to any bundle id (we even tried it on a separate project and it worked)
4- We tried to add GMSMapView programmatically to an empty ViewController using the code here (still didn't work)
https://developers.google.com/maps/documentation/ios-sdk/config#add-map
So any ideas what else we can do?
Have you try to call GMSPlacesClient.provideAPIKey(apiKey) too ?
i want to use UILabel with link.
for that i am using IFTweetLabel which is finding any link and showing a line under it and it is clickable.
but if a string is big then only first line is getting hyperlink instead of complete URL.
as an issue with https://github.com/clawoo/IFTweetLabel/issues/3.
so is there any other option for it , or other library ?
First you have to import RegexKitLite framework. Go through this link. Surely this will help you. It gives same thing as you want.
http://furbo.org/stuff/FancyLabel_1.0.zip
First thing I would like to suggest is
Use UITextView with editing property as NO and it will automatically detect all the links separately similar like the one you need.
textview.editable = NO;
textview.dataDetectorTypes = UIDataDetectorTypeAll;
If you still want to go with UILabel then
You can achieve this by using NSArrtibutedStrings — but I would recommend to use some wrapper around this C-functions. I like OHAttributedLabel.
The demo included shows exactly, how hyperlinks can be handled.
You should give a try to three20 project.
what is the reason for not using UITextView..there is link detection property for UITextView.Your app is not going to get rejected
i have already searched many places
many people have used ABAddressBookRef class
but my xcode 4 does not recognize this
i have imported
and i have added the library/framework too
but still the code was not recognized
please help me in finding some working functions/classes/APIs which i call and they do there task
THANK YOU EVERYONE
I think you're after the ABPeoplePickerNavigationController....
http://developer.apple.com/library/ios/#DOCUMENTATION/AddressBookUI/Reference/ABPeoplePickerNavigationController_Class/Reference/Reference.html#//apple_ref/occ/cl/ABPeoplePickerNavigationController
The AddressBook API should do what you need. Use the IBAction or gesture link to the button to present it.
You will have to use AddressBook framework, first add the refrence to the framework,
Then import AddressBook.h in your class
#import "AddressBook/AddressBook.h"
Then start using ABAddressBookRef
ABAddressBookRef ref;
I'm trying to make a popup like in "Camera+" or "Tweetbot" (like this one : Tweetbot or this one Camera+). How can I do this ?
That component is generally called a Popover or a Callout. Apple provides you with an Implementation on the iPad (UIPopover) but not on the iPhone.
There are a few Libraries which attempts to solve this and creates similar popovers like the ones you've shown. With a bit of customisation you can get it to look like this ones you've linked. Below is a list of the ones i've found so far:
WEPopover
CMPopTipView
PopupView
There's similar question here: iPhone popup menu like iPad popover?.
There is a solution. It's called WEPopover and you can download it from github.
For ipad use the popover control:
http://www.matthewcasey.co.uk/2010/04/07/tutorial-introduction-to-pop-over-control-on-ipad-part-1/
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIPopoverController_class/Reference/Reference.html
I have a simple question, I have add in my project the AdMob's SDK with all the header and the "libGoogleAdMobAds.a" and I want to know if it's possible to have access to this file to change some line of code.
You have to create the GADBannerView in the code.
If you try to use an UIView on Interface Builder and choose GADBannerView as the class of the object, the class wont link and you get that error.