Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I have a UIImageView and a UITextView, and I wish to wrap the UITextView around the image that I have, exactly as it is done using Microsoft Word using the Wrapping Style -> Square, which is found when you right click on the image Format Picture -> Layout
note that I only wish to use a UITextView, and I have no problem using CoreText
Thank you in advance,
You can use the CTFrame classes, along with related class CTFrameSetter, to create a path around the image and wrap the text.
Here is a related article: http://blog.amyworrall.com/post/11098565269/text-wrap-with-core-text
And related SO question/answer: Dynamically wrapping text around multiple UIImageView
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am planing to use dynamic typing in my application. Is there any technical limitations that i should care about? I could not found it Apple official doc. If possible, please provide some sample code.
See blog post here
OS: It only works in iOS7+.
UITextField: The placeholder font is not exposed in the public API and doesn't use the value of the font property, therefore you can't adjust its size as the content size changes. This leads to a weird effect where the text adjusts normally but if the field is cleared it jumps back to the original font size when displaying the placeholder. You can most likely fix this by subclassing UITextField and implementing placeholderRectForBounds: and drawPlaceholderInRect: with adaptive fonts yourself, however this is left as an exercise for the reader.
MKAnnotationView: The text in the system-provided callout does not adjust as the content size changes. Unfortunately, fixing this requires you to implement the entire callout yourself.
See here sample application
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I would like to create something like the image below in my iOS app. What is the best way to approach this, note the rows and the columns can vary.
The easiest way I thought of was to insert html table into UIWebView, but not sure if there is a way to intercept radio button clicks like there is for a regular button by making it a "href link"
A little unrelated to what you have as the title of your question, but maybe look at using UISegmentedControl. It's the closest thing to radial buttons that exists in the Objective-C world.
If you went with a segmented control, you no longer need to worry about columns, intercepting touches, and a lot of the other problems you mention in your Question - it could all be done in a normal UITableView. You would have to create some custom UITableViewCell subclasses to get the segmented controls in, but there are a lot of good tutorials (YouTube, Apple Docs, SO) on how to set those up.
From iOS 6+ you could use the UICollectionView class to build up a grid. Managing the values in the data source (representing if a radio is checked or not) is something you'd have to implement yourself.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I am using a standard UITableViewCell, right detail. The text on the right is 2 lines, but when I let it go to two lines the text on the left is no longer vertically centered. I tried modifying the "Align Baseline" but that didn't seem to help. Is there a simple fix for this?
EDIT: The issue is the different size text. Probably the right way to fix it is to use a custom cell with the right label adjusted so that its origin is higher up.
Don't know why they closed this question. There's no code to be shown here. You can build this in interface builder without any code whatsoever.
Thanks
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm trying to make a uisegmentcontrol where the selected colour is something other than blue. Also I would like to change the style like the image below. Is any of these two things possible and how do you do it?
The easiest way to do this is with custom images using the UISegmentedControl instance methods such as setWidth:forSegmentAtIndex:, setImage:forSegmentAtIndex: and setDividerImage:forLeftSegmentState:rightSegmentState:barMetrics
You could also just use UIButtons to mimic the behavior of a UISegmentedControl
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Make the EditText view as text editor using Bold ,Italic and Underline styles similer to gmail compose
This is not especially easy. I have a work-in-progress component in my CWAC-RichEdit project for this.
In the end, you need to be able to apply CharacterStyle subclasses to the content of the EditText, typically when the user highlights some text. This involves getting the Spannable out of the EditText via getText(), getting selection information from the EditText, then applying the span. However:
You have to take into account both adding and removing styles
Some styles, like bullets or line alignment, are not strictly applied to the highlighted text, but rather to the line containing the highlighted text
You need to have some UI to help with this (e.g., additional options in the action mode that pops up when the user highlights text)
I hope (:: crosses fingers ::) to be able to pick up work on my RichEditText again this fall to push its development along further.