How to remove first pin image after calling refresh button in iOS? - ios7

I have map view and I am showing car on my map view using map view annotation. But after
click on refresh button. first image is remain and update pin image showing with.
I want to remove first pin image after refresh button pressed.
Thank You.

Related

Screen Shot of image clicked react-naitve

I have multiple graphs on my screen, however I want to share the image of graph on which i have clicked. I am using https://github.com/react-native-community/react-native-share to share the content and https://github.com/gre/react-native-view-shot to capture the entire screen. Is there is any way to capture the image on which i have clicked and get the uri.?
I think one possible solution is when the user clicked on the graph, you can navigate him to a new screen and send and send graph data as param to it. In the new screen display that specific graph using param data and take screenshot then.
and finally share it.

On Click of UITableCell change detail disclosure arrow to loading indicator, segue when JSON loads

I have a table view of peoples names and when I click on one of them I am brought to that persons profile. The profile page is then loaded with JSON. I want to be able to click on a table cell in the table view and have the detail disclosure button change to a loading indicator until the JSON on the profile is loaded and segue to the profile page.
I have some example code that demonstrates this very thing here:
http://github.com/meekapps/MEEKActivityIndicators
The general concept though is:
-Store the index of the "loading" cell. Should be initialized out of range (such as -1) from the start.
-When a user taps a cell, store that index and reload that cell.
-When displaying a cell (cellForRowAtIndexPath) either set the cell accessory to a disclosure indicator or an activity indicator (if it's index matches the stored index of the loading cell.
-Don't forget to reset the accessory when the view disappears.

Adding a scrollview and get it to zoom

In my iphone app, you get a UIView with a background image and a "start button".
When you hit the start button, the start button will be hidden, and your background aswell. You will see another image. You will also get a "back button".
You should be able to zoom the image and scroll around.
I want everything on the same UIView.
When you hit the back button, everything should get back to the first background image and the start button, and you should not be able to zoom or scroll.
How can I do this? And is it possible at all to hide a scroll view in order to just show a regular screen, in the same view?
Thanks in advance!
EDIT: Ok, I know how to hide the scroll view now, but when the scroll view is shown, you can't scroll! I have made the scroll view bigger than the screen and put a label below the "original screen". How to get it to scroll?
Add a UIScrollView to the main view in which you have the zoom/scrollable image. Simply remove it when the back button is pressed.

Click event of a button which is subview of an image view in xcode

in my app i have an image view and above that i added an button.And also in button click event i am calling a method.But i am unable to click on the button .whenever i try to click the button then the row of the table vie win which my image view is present is selected .Is there any method from which i can get the click event of the button which is placed on the image view.I do not want to use UIbuttons for setting the images in place of image view .Also if i am adding button as a subview of the table view then the click event is working but when i change the subview to image view then i get unsatisfactory result.Please help.
Thanks,
Christy
UIImageView's userInteractionEnabled is false by default, switch it to true

iphone app navigation bar multiple items

how can I have a back button and another button both on the left side of the nav bar?
Do you also need the title? If not, you can simply place the button in the center area. Otherwise, if you also need the title, you will need to create a UIView with a label and a button in it and set that as the center view. You will have to set the label's text manually if the title of the view ever changes.
Or, if you don't care too much about the back button, you can create a button that looks like the back button and put your other button next to it in a parent view that you use as the left view. You would have to manually handle going back when pressing the back button, and unless you got an image that looks like the back button, your button would not have the arrow shape.