Font and colour change throughout the app - ios7

I am working on a big demo app in iOS. Now we changing UI for iOS7. i want to reflect font and colour change throughout the app. I want to do it in minimal rework. now i have 15-16 type of font and colour combination which i need to reflect throughout the app.
I know i can create IBOutleCollection. But for each combination creating so many outlet collection is not a good idea.
For ex i have almost 30 customize cell in full app with 3 fix labels and 2-3 extra labels in it. And there are almost 7-8 type of font and colour combination for that 3 fix labels.
This is just an example, count could be more. So creating so many outlet collection does not sound good.
I hope i dont sound stupid.Any Suggestions would be appreciated.

Look into UIAppearance
I suspect your answer is there. Enjoy :)

Related

Watchkit: Best way to display a lot of data

I am currently learning to develop a watch kit App and I need to display a lot of text. I am using the watch kit label, but it won't show all the text data. It gets cut off. Is there a watch kit object that can display a lot of text and perhaps allow you to scroll through it? I haven't seen this question on stackoverflow so perhaps this question can help others as well.
Set the number of lines for your WKInterfaceLabel to zero. That will allow the label to grow to the size of the content. Also, be sure that the size for the height is set to "Size to Fit Content" in your storyboard.

Is it possible to adjust the height of ApplicationBarMenuItem in Windows Phone 8

I have searched for quite a while to find the answer.
Unfortunately, there is not even single one answer can be found on the Internet.
I only have one ApplicationBarMenuItem inside the ApplicationBar which is "About". And after I saw the effect of the "opened" ApplicationBar, I think it is too "fat" (the height of the item is too much, or maybe the line spacing/margin-top and margin-bottom/padding-top and padding-bottom etc...I'm trying to create an image for you, because I don't know how to get a screen shot for that, but anyway I'm sure you know what I mean :))
So here again is the question, is it possible to change the height of ApplicationBarMenuItem in Windows Phone 8?
Many thanks.
No, you can't change the AppBar menu item height.
But... i think this is the way the appbar looks in any system application you can take a look at, and the user isn't going to be dissapointed by the size, is just the expected size. Only my two cents, but i don't think you need to worry about that.

Xcode trouble with constraints for buttons

I am creating a painting/drawing app. I am trying to make everything fit in the view on a 3.5 inch device (so far I have created it to fit a 4 inch device). I have 35 buttons in one of my views for the user to choose the stroke color and size. I understand that the buttons will need to be resized. What is the best way to do this? Everything in the view was inserted through the interface builder. This is what I am working with (the whitespace at the top is an iAd banner):
https://drive.google.com/#folders/0BxjZ6v5AeGPpVktWNmQ5ZmZjQ28
I have been playing about with constraints for some time now but I cannot manage to get the buttons to resize. I feel I may have been close at some points but never completely successful. I was hoping for some help from someone who understands them a little better! So to clarify, I am simply trying to get everything to fit on the screen when the user is on a 3.5 inch device.
Thanks in advance!
I used Autoresizing and it worked well. You need to play around with them a bit. If you explain what exactly your buttons are doing, maybe you will get clearer answers.

windows 8 metro app designing for multiple Resolution

I am designing a simple music app where the user gets to play instruments i.e. Drums, and the problem that I am facing is with resolutions.
The drums are images, which I have converted them into buttons. Everything looks great at the state that I have designed it.
However, when I switch to other resolution states, the button(image) are distorted, e.g. skewed, scaled, and looks nasty.
I have tried designing or arranging them via selecting 'Enable state Recording', but the specific designs for that state are not being saved.
Have you tried the approaches discussed here? http://msdn.microsoft.com/en-us/library/windows/apps/hh465362.aspx For the actual button sizes, make sure you are not fixing the width/height with pixel values. Use * weighted rows and columns to layout your grids and have the buttons autosize to fill a given cell in the grid. Then match with the appropriate image resource per the article.
Grids are great for dividing up available space but they can't account for changes in aspect ratios. If your items are still set to Stretch (or Fill) then they can end up out of aspect ratio. Another option is to design the entire layout at a fixed size (let's say 1024 x 768 or 1366 x 768) and wrap the entire thing in a ViewBox. ViewBox will scale all elements equally and maintain the aspect ratio, adding letterboxing (or empty space) on the sides / top & bottom if necessary. This might be a better approach for a drum kit.
Hope that helps.
Redid the whole project of designing again.
This time, I put the image inside a specific grid and that made things lot better. :)

Objective-C: How to implement TextView orphan control

I'm working on an iPad app that does a simple display of text similar to iBooks.
I would like to display ONLY full paragraphs on each screen (ie, no orphan/widows on a page). Similar to iBooks, I want to allow the user to change the font and font size and continue to keep all lines in paragraphs together. The user will be able to page forward and backwards (just like iBooks).
I've been researching this and can't find a solution for this. I would think that someone has already done this code, but it looks like I'm going to have to figure out the point size of the font and calculate the size of the TextView and then count how many characters, etc etc etc.
Does anyone have a suggestion where I might start to do this?
Thanks a bunch!
Look at the NSString UIKit Addition it has methods for calculating how much space the rendering of string in a give font will take.