Question

this is a two parts question, the first one is about, how to make an inner menu like the "pop up" menu on what's app, when u want to send an imagen or something to a contact. (IOS 7)

and then, link each element on that "pop up menu" to a title on the content of my view controller text, i mean scroll to that title.

the content should be something like this:

A title:

description for title ...

seecond title:

a description for that another title...

third title:

a description for that last title...

the menu should be something like:

  • a title
  • second title
  • third title

and when i click some of those items, the app scroll to each one...

any ideas ?

Was it helpful?

Solution

As I said before the overlay is just a UIActionSheet.

Assuming you are using a UITableView, as long as you have a mapping of section title to section index, you can just tell the table to scroll to that index using the scrollToRowAtIndexPath:atScrollPosition:animated: method.

Say the user selected the title corresponding to the third section (at index 2), you can just do something like:

[myTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:2] atScrollPosition: UITableViewScrollPositionTop animated:YES];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top