Ios 7 navigation title font

System Requirements: Windows 8, Windows 7, Windows 8.1


Previously, in our i OS Programming 101 series, we showed you how to customize the appearance of the Tab Bar. In this tutorial, we’ll continue to talk about UI customization and cover how to use Appearance API to make the Navigation Bar more beautiful. Here are what you’ll learn in this tutorial: Customizing the View with background image Customizing UINavigation Bar including background image and text style of title Customizing the appearance of UIBar Button Item As usual, we’re going to illustrate the concept by converting a plain navigation bar to one with customized graphics. However, to help you focus on learning the customization, we’ve prepared the Xcode project for you to start with. Before proceeding, first download the Xcode project here (note: the project is created using Xcode 4.5). If you build and run the project, you’ll get an app with simple navigation UI. Now we’ll work together to style the navigation bar, customize the bar buttons and assign our own background image for the view. Demo App – Custom Navigation Bar Customizing the View Background First, we would like to change the background of view controller with our own image. If you open the Xcode project, you’ll see a set of images that we’ve added for you. To set the background image, open the “ Recipe View Controller.m” and add the following line of code to the end of “view Did Load” method: self.view.background Color = [ UIColor color With Pattern Image:[ UIImage image Named common_bg ]; Apparently, you can use the “background Color” property of the view to change the background color. What you may not know is that you can also use the same property to set the background image. The trick is to create a UIColor object using the “color With Pattern Image”. During drawing, the image in the pattern color is tiled as necessary to cover the view area. After the change, compile and run the app. It should like this.
From i OS 5 and later: [ UINavigation Bar appearance] set Title Text Attributes: @ UIText Attribute Text Color: [ UIColor green Color], UIText Attribute Text Shadow Color: [ UIColor red Color], UIText Attribute Text Shadow Offset: [ NSValue value With UIOffset: UIOffset Make(0.0f, 1.0f)], UIText Attribute Font: [ UIFont font With Name Helvetica size:20.0f] ]; From i OS 4 and earlier: UILabel *label = [ UILabel alloc] init With Frame: CGRect Make(0, 0, 400, 44)]; label.background Color = [ UIColor clear Color]; label.font = [ UIFont bold System Font Of Size:20.0]; label.shadow Color = [ UIColor color With White:0.0 alpha:0.5]; label.text Alignment = UIText Alignment Center; label.text Color =[ UIColor white Color]; label.text=self.title; self.navigation Item.title View = label; [label release];.