I can't seem to find a decent tutorial to use a map in my iOS 6 app. I got the part of adding the MapView, but I want to add pins in custom locations. I want my pin to have a title, a subtitle and a picture on the left. I'm not sure if I need a custom pin of not for that. I also want a detail disclosure indicator to segue to another page. Should be that complicated, but I don't know where to start. Help please!
There you go...a pretty good iOS6 Tutorial with the new MapKit.
Helped me a lot. Enjoy...
http://www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial
Related
Can anyone tell me how I can mimic the bottom sheet in the new maps app in iOS 11?
In android you can use a "BottomSheet", which mimics this behaviour, but I could not find anything like that for iOS.
Is that a simple scroll view with a content inset? So that the search bar is at the bottom?
I am fairly new to iOS programming so if someone could help me creating this layout that would be highly appreciated.
This is what I mean by "bottom sheet":
I see this is old an question but for anyone struggling with this issue. you can use this module https://github.com/wix/react-native-interactable. Here is demo
https://github.com/wix/react-native-interactable/blob/master/playground/src/real-life-examples/MapPanel.js
Maybe you could give a try to Modalize https://github.com/jeremybarbet/react-native-modalize I've been working on it to be able to create all kind of bottom sheets similar to that.
It´s not called anything special, but some refer to it as "Card". Here is a great tutorial of how to implement the bottom card as Apple Maps.
I am using swift3 with Xcode8 to develop an iPhone app. I want to achieve the following effect: There are a set of cards and I can scroll and tap a card to select the card, then the selected card will be will be displayed by itself.
I am quite new in IOS development, what I am thinking is using the collection view, but how to achieve this kind of card overlay effect with collection view?
Or should I use something else? Can anyone give some clue? Thanks!
Have a look at MMCardView, currently supporting Swift 3.
In terms of implementing this, a collection view would be a start - looking deeper into libraries this is the common way of implementation. If you don't want to implement a library, take a look at the libraries files and see how they were implemented and adapt it to the way that you want.
I am writing an iOS app in Swift 2 using Xcode 7.
I want to display a set of a user's trophies. For this, I am imagining a horizontally scrollable display as each trophy image is small, but users can have more trophies that fit across a screen.
You can see a Sketch example here: i.stack.imgur.com/VtpEc.png
I first thought that I could use a UIScrollableView, but I don't think this will work because user's are NOT supposed to be able to zoom into these trophies. BUT, if UIScrollView is the way to go, then how do I go about implementing it horizontally and without zoom? The most similar feature in an app that I have found is in Facebook's iOS app. Facebook uses these "horizontally scrollable views" for suggested friends/groups.
You can see what I am talking about in this screenshots: Facebook Horizontal Scroll
This feature also seems to be built in to Apple's iOS. When choosing which action to perform, users are presented with a "horizontally scrollable list" of apps to choose from.
See what I'm talking about here: built in iOS horizontal scroll
I would appreciate any help that anyone can offer! Thank you!
They're using a UICollectionView with an horizontal flow layout.
This more detailed answer might help you to figure out how to implement it: https://stackoverflow.com/a/19435898/5741377
I'm using Xcode 5 and the latest iOS SDK and I'm having a really hard time figuring out how to create custom annotations with a clickable button.
All I need is a custom annotation with a button, that is shown when the user taps a pin on my MKMapView. Following some tutorials, I managed to create a custom class that loads a .xib file, this already works. However, the problem is, that whenever I try to click a button placed on the annotation view, the pin gets deselected. I would love to be able to design my annotation in a .xib file and not create it 100% programmatically. Is there any way of doing so?
Thanks,
Niclas
There is a great tutorial on maps on a site I used when I first got started into this section of iOS. It can be found here: http://www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial ( Just an FYI, this is a great resource for learning more about iOS. )
Anyways, this paragraph should sound familiar (as to what you're after):
You’ve now made it so that in the callout when a pin is tapped on, there will be a button on the right hand side. When this is tapped, the mapView:annotationView:calloutAccessoryControlTapped: method is called. In this method, you grab the MyLocation object that this tap refers to and then launch the Maps app by calling the openInMapsWithLaunchOptions: method.
Just note that it is opening up the Maps app, but you can choose to do whatever you want really.
Later on, here are some other great links if you need them:
http://www.raywenderlich.com - This is where I started, recommend you do the same. Use their search box. They sell some privatized/self-published PDF books too if you like that.
http://www.cocoacontrols.com - You could probably find a control someone has already written with maps.. use the search, filter for iOS only.
http://www.nshipster.com - Great building block site
http://objc.io - Great site for getting into more low-level development.
How to create blackberry map with two types of markers - first for search results, clickable, leading to detail screen and second just for current location (not clickable, visually different)
Thanks,
Peter
I know it is late, buit still I am posting because it might help someone else. Check out the below link
How to show our own icon in BlackBerry Map?