Is there any way for me to make it so when a user clicks on an image that is in a TTStyledLabel it opens up in three20’s image viewer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically yes. Since TTStyledText can contain html tags you can harness the three20 navigation to you your advantage, all you have to do is wrap the img tag with a tag and set your own mapping for a controller that derives from three20’s photo viewer.
in your app delegate have a mapping for your controller like this:
the the photo view controller should have this init method:
Inside that initWithPhotoUrl: you need to create a photosource – please refer to the TTCatalog sample for a sample on how to create a MockPhotoSource.