I am newbie for iOS development (though I am web developer since last 2 years)
I have created a link on my screen using TextView and provided color as black. However when I run my application I see link color as BLUE. Any idea how to make link color to BLACK?
Is there anything like CSS for iOS development?
Automatic recognition links in
UITextView
always show up blue, unless you subclass and customize it. You can useUIWebView
to display some styled HTML content though.You can easily format text within
UIWebView
, something like below:For more details, i recommend you the official UIWebView and UIWebViewDelegate documentations.
EDIT:
@Fahim Parker:
Yahoo link will not gets called because
baseURL
is set tonil
, you have better option: create a html file,myFile.html
, include it into your Xcode project, and change your code to something like: