0

Suppose I have a table view with 5 rows, each row have product name(UiLabel), product photo(UiImageView) and product price(UiLabel).

When clicking a row, it will be changed to a UiView that showing the product name(UiLabel), product photo(UiImageView) and product price(UiLabel), plus a product description(UiLabel).

I want to ask how to pass the data of product name, photos, price and description which is stored in ProductListTableView.m, from this table view to another view ProductDetailView?

ps: I guess I should write some code on method didSelectRowAtIndexPath, but no idea...

1 Answer 1

1

yes you have to write code in didSelectRowAtIndexPath-

and follow this to how to pass data from one class to another - Passing data between classes using Objective-C

you can pass a NSDictionary obj from one class to another.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.