I apologize if this question has been asked before but I have a really stupid problem and I cannot find an answer.
Using angular-material's the label is always rendered upper case. I tried using a div to wrap the text inside with no luck.
Does anyone have a suggestion? Why did they choose this behavior? (and nobody seems upset)
I have the feeling I am doing something incredibly stupid! :)
Thanks
The pitfall of using components that other people design and build is they get to make the aesthetic decisions.
If you're ever wondering what is causing some behavior, the best first step is to view the source and inspect the elements.
Looking at .md-tab, the text-transform style property on .md-tab is set to uppercase. Set it to none in your style section to get rid of any text-transformation:
.md-tab{text-transform: none}
Related
We want a native rich text editor because we are trying to stay away from using Javascript and webviews for this solution.
We've tried many things so far, and we're left with quite a few obstacles that we just can't get around. Let me break it down into questions that I hope you can answer.
I have a UIButton, that says "B" on it, and I want to put it into the 'selected' state when a user sets 'Bold' from using the TextView's long-press gesture on a selection. How do I register for this state change? I tried adding an observer on the textView.attributedText, but it doesn't seem they are changing that dictionary, but instead are updating it. NSDictionary has no way, as far as I know, to add observers on the dictionary's keys. So I'm stuck with noticing this change.
Regarding number 1, I also tried setting the textView's inputDelegate and it seems that the method - (void)textDidChange:(id )textInput never gets called. :( Docs says is should. What did I do wrong?
How do I update the attributedText weight when I hit my bold italic or underline button.
How do I convert my attributed text into HTML?
I saw a few neat libraries for number 4, but I'm still curious what you'd come up with. (Broadens my options). But, I can't really work on number 4 until I figure out how to do the previous 3.
This editor will also need hyperlinks, bulleted lists, and numbered lists, more things I imagine I'll struggle through, but if you could answer the 4 questions above, that will keep me held over for a while. :)
Thanks!
Here is a link to an iOS rich text editor I've been working on.
https://github.com/aryaxt/iOS-Rich-Text-Editor
There is still a lot of work that has to be done, but the basic features are there.
The Apple sample application called 'TextEdit' does much of what you've described and, if not that, would be a very good starting point. Find the sample code with a search in the Organizer.
There is a commercial editor based on the DTCoreText library. I've used that library but not the rich text editor. Look at the Cocoanetics web site. It's not cheap but will save you a ton of work.
I have implemented the syntax text highlighting as given in the question here (UITextView w/ Syntax Highlighting) - it's a great utility and works well when compared to some non-regex versions (such as the example documented here: http://www.a-coding.com/2012/03/syntax-highlighting-in-ios.html).\
Both implementations, however, give me the same issue. When text in the UITextView is automatically wraps (i.e. is longer than the current view allows) the placement of the caret when editing is incorrect - you attempt to start an edit and the caret appears in the wrong place and when you type the text you enter appears further up the text view than you would expect.
Can anyone give me any pointers as to where the issue might be occurring and how I might be able to begin fixing it? Thanks in advance to any input / suggestions.
You can see here that I have typed XXX at the caret but it has appeared further back along the line incorrectly http://i.stack.imgur.com/zUIhd.png
UPDATE: The issue seems to be firmly within the fact that the custom UITextView wraps (line breaks) in a different place than the standard Apple UITextView - I'm not sure why this is happening or what to do about it though.
Not a super answer but with the release of iOS7 this probably isn't how you'd do this now anyway, see a tutorial such as this one: http://www.raywenderlich.com/50151/text-kit-tutorial
I apologize if this been asked before, I've searched but havent found the answer I'm looking for.
I'm writing an app that will calculate various values and display that value in the interface use. One example is the days until a various event. What would be that best element from the interface builder to display this information? Use Labels and update the labels to display the values? Any help would be greatly appreciated, and again I apologize if this has been asked before. If it has and I was unable to find it please point me in the proper direction.
UILabel is good for short pieces of text (which can include numbers like "45.3450004" etc.).
UILabel will be good. OR
You can use Text Field with User Interaction Disabled.
My website uses sIFR and it all seems to work great, except for one word in my navigation bar. The navigation links all work, but the word "Zoeken" (= Search) in front of the search form doesn't get changed to the desired font type.
I have checked the header.php of my site, as well as the CSS, but any of the changes that I made, don't seem to work.
Could anyone help me out? I am hoping it's just a "piece of cake", but my knowledge of sIFR is close to non-existent.
Many thanks!
Jasper
Try adding a class to this element Zoeken and then target that span specifically with cufon to see if it works, maybe? As cufon is really simple and if it's not converting it the only thing I can think of is that it's not being targetted. If the above doesn't work it'll also give you a better idea of what the problem is.
I recently had a problem when writing a Latex document which I posted here. The solution of adding the "twoside" option worked fine for me, except that when I have a page, say the conclusion, where I have just two paragraphs, so maybe half of the page filled and I then add a "\pagebreak" for having the "reference" part on a new page, it stretches the whole content of the conclusion page s.t. it fills up the whole page. This leads to the ugly thing that the spacing between the lines and paragraphs becomes huge.
I googled a bit, but didn't found any option to avoid this.
Add \raggedbottom to the latex preamble that will solve it.
Not quite sure whether this will solve your problem, but try \clearpage instead of \pagebreak .
How about:
\vfill\clearpage
I believe I was able to fix a similar problem with the multicol package, which provides a rather more powerful multi-column environment that the one built into the standard classes.
I just thought: are you using \raggedbottom? That would be worth a shot before bringing in a new package.
Can you use the \newpage in this case ?