문제

I'd like to implement a "Sign In" form similar to those in already existing apps, for example:

Twitter Dropbox

Screenshots are from Twitter and Dropbox. The "Forgot password?" option is tappable and it navigates to another view. I'd like to make something like that, but I'm not sure if such "Forgot password?" text is the footer of the grouped UITableView: I've been searching in the documentation if it is possible to enable user interaction in a footer, but I couldn´t find anything regarding that. Or maybe it is a UILabel? How can I do this?

Thanks!

도움이 되었습니까?

해결책

You can override the method - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

there you can create a view with a label, button or whatever you need.. Same works for the header with - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

다른 팁

Implement the delegate method

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

Then create UIButton with "Forgot Password" title, add that as subview to a UIView and return that view as the footer view.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top