This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Removing First Annotation-MapView iOS
I am working on mapview project. I have question to remove annotation from mapview.
Total annotation point would be 5. How could I remove first annotation from my mapView.
I think I have got my answer,
[mapView removeAnnotation:[self.mapView.annotations objectAtIndex:0]];
Related
This question already has answers here:
How to make UILabel in Swift a circle
(7 answers)
Closed 3 years ago.
timerLabel is the label that I'm trying to change it into a circle. This line code is not working the way that I desire:
timerLabel.layer.cornerRadius = timerLabel.frame.width/2
I found a solution for my issue in this already been asked post: https://stackoverflow.com/a/46066815/8451094 .
Thanks #elarcoiris
lblRoundDot.layer.cornerRadius = lblRoundDot.frame.width/2
lblRoundDot.layer.masksToBounds = true
This question already has answers here:
Remove user location annotation from mapView
(3 answers)
Closed 4 years ago.
I'm trying to hide the blue dot of the user location in my Swift 4 app. I have attempted to turn it off in the storyboard but this doesn't seem to solve the problem.
You should set the showUsersLocation to false on your MKMapView.
https://developer.apple.com/documentation/mapkit/mkmapview/1452682-showsuserlocation
This question already has answers here:
How can I create a popup menu in iOS?
(2 answers)
Closed 4 years ago.
How are these menus called in iOS and how to implement them in Objective-C ?
It's called UIAlertController
Take a quick look at Apple's docs:
https://developer.apple.com/documentation/uikit/uialertcontroller
You can accomplish that with UIAlertController with image for every UIAlertAction . see more here Alerts
This question already has answers here:
check if control center is used
(2 answers)
Closed 6 years ago.
I want to check whether control center is present in UIviewController.swift file or not,
how to do it?
please help me.
You can not do that. check this answer for reference
If they are active you can only check whether your app has backgrounder or foregrounded
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Changing Icon per Day
How to make a dynamic icon? For example in the calendar. Each day the number is changes to the current. Is it possible to implement this in my application?
This isn't currently possible without a jailbreak