Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to create change theme component for my reader app. When user is changing theme then text and background are changing theirs colors. I was looking on other apps and I noticed that they are all using the same themes: white, back and sepia. Please refer to screenshoots below:
It almost looks like they are all using the same mechanism. I'm wondering how I can achieve similar effect? Is there any out-of-box component what iOS provides or I need to use UIAppearance protocol or maybe there is another way?
You can use a singleton to manage each color, when enter the app, if there's no setting color, give the default color.
when user change the theme, u should save the color config to local data. and post the notification to tell controllers to change theme(or in viewWillAppear manual change the color).
next time you enter the app, the color manage singleton read the local config you set, and show the right theme
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 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.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm building an iOS app that allows the user to select a color scheme. The app has basically one accent color that I would like to change, however it is used throughout the app on labels, backgrounds, buttons, things in tables, etc...
What would be the best way to get around lengthy code?
My first option was to just hand code in every UI element (the long way). Is their an easier way to go?
I saw this question but the answer doesn't seem applicable to my situation: Can I tag a UIColor?
Sounds like you want to look at UIAppearance:
You can customize the appearance of instances of a class by sending appearance modification messages to the class’s appearance proxy.
For example, to modify the bar background tint color for all instances of UINavigationBar:
[[UINavigationBar appearance] setBarTintColor:myNavBarBackgroundColor];
Some commentary here
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.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Hi I want to create bar chart application with slider control in ios. once my slider is changed my chart also changed and their datas also changed. I am new for this field. I dont know how and where to start in this application. If anybody knows please guide me or any other links send me. Advance in thanks.
There are various ways of achieving this.
You can use API's such as Core Plot to achieve your requirement. At the same time you can use Core Graphics & quartz Core to achieve it.
You should also check this out Bar Graphs in iOS app
i've made a hack
Make custom uiview for each bar accord to your input values.
set frame of each uiview(bar) according to input values.
there is no need of corePlot files if u want simple bar graph
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I want to put a feedback form in a view in my IOS application.
There will be 2-3 smiley images. Initially they will be in grey color. When you tap one of them, it will be colored, and the rest stays grey. They will work like radio buttons in HTML.
And there will be 5 questions.
So, what is the best way to handle this feedback form in a native IOS application?
Thank you.
In my opinion the best and most simple way would be to do it with an embedded html page. This is great if you already have such a page for the web version.
Another way would be a custom made form in a xib, with custom buttons, but in order for you to actually receive that feedback, you would need to somehow send the data trough a scripted page (php, asp or whatever you like).
I've done similar things and I used the second suggestion I gave you but in my case it was different, because that form had to be presented over an existent view with animation and so on. What I would recommend you is the first one, with the web page.
I think you can use the xib to create the view with the question text and buttons for answer options. The buttons can have the smiley images as background image.
Then you can change the image for the smiley on button click for the button state selected. and may be have another button to confirm answer and move to next question that is refresh view with new question text.
Hope this helps.