Limitations of dynamic typing in iOS? [closed] - ios

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

Related

Create grey transparent alert [closed]

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 5 years ago.
Improve this question
I am looking for either the terminology or a reference on how to do this.
When you Successfully build a project on Xcode a nice, looking alert pops up. Like the one below:
I have found only one other question on how to recreate this for Mac OS. I want the iOS version. I want to use this alert to show a count down for a timer. I have the count down fully functional but I'm not sure of a good way to display. I think this would be ideal for it.
I have the count down fully functional but I'm not sure of a good way to display
It's simply a view (UIView), with a transparent grey background color, rounded corners, and a light shadow. All of that can be readily be configured by straightforward view and layer properties in about three lines of code, and showing the view can be as simple as one line of code.

How to wrap text around image [closed]

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

how to know the default properties' values of UI controller in iOS [closed]

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
how to know the default properties' values of UI controller in iOS?
Such as an alert view, I have Cancel/OK button on it, how could I know the Cancel/OK button's border color, border width, border's shadow?
And others, like button on navigation bar...
To sum up everything that's been said here - you can't get most of the data you need for the standard UI elements in iOS. You can however NSLog any of the UI elements and check out some of its properties. Be mindful of the fact that about 99% of the system UI elements have read-only properties meaning you can't change their look and feel directly (and honestly, you shouldn't).
Check out interesting projects like UI7Kit that allow you to port iOS 7 design to earlier iOS versions. Also Cocoa Controls are highly recommended for any UI customisation tweaks.

Make simple text editor in android With Bold Italic and Underline [closed]

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.

Can I use Radio buttons in my iPhone app? [closed]

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 6 years ago.
Improve this question
My UI designer favors a radio style button for Yes/No. I understand there is no such UI component in iOS and I would use two different custom images for normal/highlighted state. However, what I need to know if Apple would allow me to do it. Is there any clause in the human interface guideline against using radio style button instead of SegmentControl style? Help would appreciated, thanks
DONT! This really is something you should avoid under pretty much all circumstances. The Apple GUI team has designed a different control for such task and you should rely on the fact that they really did a great job. Keep in mind that the user is using his finger to use the UI and that a radio-button is more or less designed for a mouse cursor. The "circles" would need to be huge to be properly addressable with a finger. Apple recommends 44points square for any touchable control.
Apart from that, you will not get rejected for creating such custom control.
I think that your designer needs to read the Apple HIG. They should know this is a bad idea.

Resources