objective c - Detect if NSString contains a URL and generate a "link" to open inside the app a Safari View -
I am reading a Twitter feed in my iPhone application and can do it correctly, but I want to develop it I'm sure there is a URL or URL in the entire NSString and a "link" that will open a UIWebView within the same application.
How do you do this thing to me? >
- (zero) setTextTwitter: (NSString *) Text WithDate: (NSString *) Date {[Maintain text]; [Text writer release], text writer = zero; TextTwitter = Text; [Keep the date]; [DateTwitter release], Detector = zero; DateTwitter = date; [Self-setday display]; }
See Craig Hockenberry's IFTweetLabel, which can be found.
Or you can use the labels provided by the three 20 libraries, which can be found.
Or the simplest solution: Use the UIBEWView with the data type set on the UIDetDetter type links.
Cheers, Paul
Comments
Post a Comment