IOS 4.0 is it a way to add hipperlink kind of interaction to some range of NSMutableAttributetString? - iphone

hi i'm building app with some rich text content on it and text content i have with NSMutableAttributedString. I cought links in my text with regex and made it blue but don't see the way to add some interaction to string ranges of NSAttributedString. is it any way? is there a way to do so?
thank you

here is answer for my own question. I'm new to apple development so this project might be really dirty but it works for me, if anybody wants to improve it or has any suggestions please let me know, lets make this text project better ;) textViewProject

Related

UIMenuController with Images [duplicate]

I saw that it's possible — iBooks application does it.
Is it any way to do it?
I wrote a category to support image for UIMenuItem. It's based on method swizzling, but should be safe in most cases.
https://github.com/cxa/UIMenuItem-CXAImageSupport
There is nothing in the current official API do that. UIMenuItem can only be initialised with -initWithTitle:action:
I suspect that Apple either using a private API or have implemented a custom control. Probably the former.
Asked previously here
Check Emoji & Symbols, perhaps it will fit to your purpose.
Go to your Xcode Menu -> Edit -> Emoji & Symbols.
Ex.:
let menuItemYes = UIMenuItem(title: "✅", action: "doSomething")
Good luck!

Highlight and Annotate text in AePubReader iPhone SDK

Is there any way to get text position for mark up and make note on ePub file ? I want to put highlight and add note feature on ePub file.
I am referring https://github.com/fedefrappi/AePubReader as a basic start. This code already facilitates searching and font size varying feature.
Please suggest me anyway to achieve my requirement with this library.
Thanks in advance.

Localization native development region does not change the app language

I am building an app which I only want it to be in Swedish.
Based on many questions in SO I set the Localication native development region to Sweden.
I set this in the app-info.plist.
But this does not seem to work. The app and the systemButtons are always displayed in English.
SHould i do something else to make it work?
Is this value overridden somewhere else? (I am mainly concerned about UITableView delete to a translated version of 'delete' button)
Your help and suggestions will be greatly appreciated
You should use ableView:titleForDeleteConfirmationButtonForRowAtIndexPath: to force the name of the delete in the table view.

Make portion of NSString italicized or bold, not whole string

How would I go about italicizing a single word in an NSString which will be displayed in a UILabel? Specifically, I don't want all text to be italicized, just one word.
Thanks!
(Edited) I meant UILabel, not UITextField.
I don't think that what you are asking to do is possible (I'd be happy to be proven wrong). However, this library (https://github.com/facebook/three20/) is a popular way to achieve the same result in a UILabel (not text field) . The library works fairly well, but does have a lot of limitations, especially on edge conditions, and of course, it comes with associated overhead.
I'd encourage you to think about other ways of achieving the same user outcome. Can Placeholder text help? How about hints next to your text field?
Good luck.
A native UILabel does not support NSAttributedString which is what is normally used to display strings with formatting. You could try an output the text your self using Core Text but I would suggest checking out FontLabel or the three-20 project mentioned by #JJ Rohrer
Use NSAttributedString... Find controllers to draw NSAttributedString,since UILabel wont support NSAttributedString
Controller for NSAttributedString

change launch image(default.png)?

i am quite new to iphone development but i have been given a old application and told to change the launch image(default.png)..i tried to google it but couldn't get much help from it??
how can i change the default image in my old application?? any information regarding it will be really helpful??
The term is splash screen and I'm sure that's why you weren't seeing any good search results. Here is a good link:
http://adeem.me/blog/2009/06/22/creating-splash-screen-tutorial-for-iphone/
You can't change it programmatically. You can make a new one and just replace Default.png file with it.