I just made my first iPhone project. I wrote no code - just Xcode and IB. I dragged a label out, changed the text, set the text color and the background color and ran it. No big deal. Works great in the simulator.
Then, I thought I would change the font of the text. First let down. Apparently, there are only a certain number of fonts that can be used on the iPhone, and the one I wanted wasn't there. So, I tried using some on the list (I googled) that were there. Sometimes, I could see the font changing when I double-clicked the label to edit the text, but any time I clicked off the label, the font always reverted to the default font. I am, however, able to press CMD+I to add italics and CMD+B for bold text when editing the text.
Then I started looking at the generated code, with the mindset to set the font in code, but I could not find anywhere where the label's text was being set, or the text color or back ground color were being set.
I looked in these files:
MyAppAppDelegate.h
MyAppAppDelegate.m
MyAppViewController.h
MyAppViewController.m
MyApp_Prefix.pch
main.m
I could not figure out how to view
MyAppViewController.xib
as double clicking it just opened IB.
Where' the code?
Then, I thought I would change the font of the text. First let down. Apparently, there are only a certain number of fonts that can be used on the iPhone, and the one I wanted wasn't there. So, I tried using some on the list (I googled) that were there. Sometimes, I could see the font changing when I double-clicked the label to edit the text, but any time I clicked off the label, the font always reverted to the default font. I am, however, able to press CMD+I to add italics and CMD+B for bold text when editing the text.
Then I started looking at the generated code, with the mindset to set the font in code, but I could not find anywhere where the label's text was being set, or the text color or back ground color were being set.
I looked in these files:
MyAppAppDelegate.h
MyAppAppDelegate.m
MyAppViewController.h
MyAppViewController.m
MyApp_Prefix.pch
main.m
I could not figure out how to view
MyAppViewController.xib
as double clicking it just opened IB.
Where' the code?