Objective-c UITextView detecting texts - objective-c

I am using UITextView on my project. TextView detected texts for Address and Phone number and links.
But some detects is Green color is some detects is underline.
I hope to remove this only underline, No texts.
Please help me,
enter image description here
enter image description here

Uncheck the following things in UIStoryboard,I believe this should work

Related

Set OSX status bar app image colour

I have a frustrating problem. Ive created a StatusBar (MenuBar) app and attached a logo to it. Problem is no matter what colour the image I use for my logo is, it always turns out grey scaled in the statusBar. Drop box has a blue and green icon so I know its possible just don't know how. The image im using is a PNG btw
Okay, I figured this out. Incase anyone stumbles upon this and needs an answer. What had happened was, I had set setTemplate to YES on my highlight image. I had seen this in a tutorial I followed to learn how to make a statusMenu app in the first place. Removing this line fixed everything

How to layout the UIlabel object according to design spec in iOS

I have some difficult time in creating iOS screen to match with visual design provided by design team.
The design team has provided the spacing info for each screen which shows how much space each text needs to be apart from other UI element on the screen. This is attached for your reference. You can see here that the two text labels "Activate Your Account" and "A Verification link...." are placed apart by 25px.
The same thing I am trying to achieve in the storyboard. I am attaching the storyboard screen snapshot for reference.
From this you can see that I cannot keep exactly 25px b/w the two text labels because for the following issue
The text font is custom font and I cannot load the same in storyboard. I have added the font file in the project, but when I try to open it in storyboard for UILabel, it doesn't list out. I am not sure why xcode doesn't show up. This makes me hard to resize the label's frame. If I try to decrease the empty space in the label (upper and lower part of the text), this will make label height less, but when I set the font programmatically, it doesn't fit in this small space.
When I try to increase the height of the label, the text inside the label starts displaying at the center leaving space at the top and bottom of the label frame.
So I want to know how to solve this problem. If anyone had this issues and sorted out, please let me know how to fix this.
Many Thanks
Your designers aren't speccing their designs correctly :) Show them how iOS renders text and have them spec their designs in the same way. This is what we do on the Facebook design team. I mocked up an example for you (each square is 4dp/8px).
http://i.stack.imgur.com/q4tZX.png

Pixate background-image no-repeat?

I am trying to put a background image into a text-field (it's just a search icon). And it is tiling the image in the text field. Is it possible to turn off the repeating of the image? i don't see anything like that, i'm seeing padding and position for background images but nothing to turn off the tiling of the image. is this not possible in pixate yet?
thanks!
You should be able to set background-size to the size of your text-field so it won't have anything to repeat.
I battled this same problem, and in the end, I found I got what I wanted by using multiple objects. Even if you get the search icon to work right, you're probably going to notice the UITextField doesn't pad the text away from the icon.
Anyway, here's how I ended up doing it so that I had full control over the style.
So you can put your search icon in the UIImageView and then define your text field's style (border, background color, etc.) with the UIView. The UITextField ends up being plain white/transparent, and positioned so that its text doesn't overrun the search icon.
I hope that helps.

Unicode characters being drawn differently in iOS5

Setting the title of a uibutton to u25C0 causes it to have a blue background in iOS5 but not in iOS4.3.
Strangely enough setting the title to u25C2, 2 characters a head in line, appears as expected. Go fig. I will be attaching an image later.
As a side note is this blue button currently in use in any Apple apps?
Thanks.
Left : iOS 5
Right : iOS 3.2
This was done by setting the title to the unicode character stated earlier.
You can try to use Unicode6.1's variation selector. For about Emoji, adding "\U0000FE0E" to specify non-coloured glyph.
For example, for about left-triangle(U+25C0), you can specify like #"\U000025C0\U0000FE0E", and that changed glyph from Apple Color Emoji style to non-colored plain emoji, at least on
iOS6 simulator on Mountain Lion.
Swift 4.0
let glyph = "\u{000025C0}\u{0000FE0E}"
You need to set the font appropriately. The blue icon you're seeing is U+25C0 in the Apple Color Emoji font. I'm not sure what other fonts on iOS include the symbol you want, but if you find that font and set it explicitly then it should render the icon you want.
Just found how to achieve this without code. Open Symbols&Emoji panel by clicking near your country flag in top right corner of OSX screen.
Type symbol you wanna find
Double-click on symbol you found
You will see it appear in text filed
Press Enter and you will see emoji in Xcode IB
Type "variation" keyword in search field
Double click on variation selector symbol
Sure it is "VARIATION SELECTOR-15" exactly
Nothing will changed in textfield (don't worry)
After pressing Enter Xcode IB will changed to flat emoji!

Tips on implementing a custom UITextView interface on the iPhone?

I am trying to implement a control to edit text that will display the text in multiple colors. None of the solutions I have attempted yet have been good enough.
UITextView cannot accomplish this. All of the text must be the same color.
Using CoreGraphics to draw the text does not allow the text to be selected.
Using a UIWebView, DIV and PRE tags cannot be set to contentEditable on Mobile Safari.
Currently playing with using an off-screen TEXTAREA and an on-screen DIV to show the rendered text. This works pretty well, except supporting all of these at the same time seems impossible: click-to-type, click-to-move-cursor, click-and-hold-select/copy/paste.
Anyone have any tips on this predicament?
I've been trying to find any preexisting library out there that will accomplish this in a good way, to no luck. I'm open to any ideas!
Well, just pulling an idea out of my... let's say hat.
Could you put a transparent UITextfield over a view that draws the text? If the background was clear and the text color was clear the user could not perceive it but it should still respond to all commands. As the user enters and edits text you could draw the results on the view underneath.
I think the selection would work without any modification at all. When the user selected the clear text, it should create the illusion of selecting the drawn text automatically.
Like this one? StyledText http://three20.info/gfx/overview/styledtext.png It's in Three20 .
Here is an idea. I have no idea if it would work.
If you are only using colors, and not styles, the a UIWebView with colored text might layout text in exactly the same way as a UITextView. You could put a UITextView with invisible ink (text and background fully transparent) over a UIWebView and mirror the contents with colors in the html. I assume you can do scrolling with javascript along with the colored layout.