-1

I want to create a Timer Application in xcode apps.

But it needs two UIViews, I have only one UIView.

How to add the another UIView in xib?

Arulkumar
  • 12,966
  • 14
  • 47
  • 68

2 Answers2

3

Search before u ask Read this

You can use storyboard it is better read about it link

Community
  • 1
  • 1
Omarj
  • 1,151
  • 2
  • 16
  • 43
1

To create a standalone user interface (XIB):

File -> New File -> iOS -> User Interface

Then choose:

Application (includes delegate and window) Window View Empty To create a new UIViewController class with a user interface:

File -> New File -> iOS -> Cocoa Touch -> UIViewController subclass -> Click Next

Then, name the new view controller class and select "With XIB for user interface."

OR

Choose objective-c class and then select UIViewController as subclass.

Apple moved all objective-c class templates into the "Objective-C class" template. They have custom functionality, like "With xib for user interface", there too.

IronManGill
  • 7,222
  • 2
  • 31
  • 52