Questions tagged [nib]

NIB files are similar to XIB files (XCode Interface Builder), with the difference being XIB files are modified during development and NIB files are created during the build process. NIBs store static information about the interface as well as any behavior that has been implemented.

Storyboards have since succeeded NIB/XIB files as the latest UI interface tool.

1152 questions
-1
votes
1 answer

objective c two nib files

I have developed an app for the iPhone. I have started trying to make my app universal and the way I am doing this is I have two nib files for each .m and .h One for the iPad and one for the iPhone. My idea was this would keep the code common but…
user1096447
  • 429
  • 1
  • 7
  • 22
-1
votes
1 answer

Why am I unable to access this variable I created in a nib?

I created a TutorialScreen subclass of UIView, and in a xib file I created three UIViews of that type and used them in another class by bringing those objects into UIViews: self.tutorialScreen1 = [[[NSBundle mainBundle] loadNibNamed:@"View"…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
-1
votes
4 answers

Use two different nib files for iPhone 4 and iPhone 5

Is there any way to detect what device the user is using, then using that information, make the application use a specific nib file? Right now, the code that I have is - (BOOL)application: (UIApplication *)application didFinishLaunchingWithOptions:…
Jojodmo
  • 23,357
  • 13
  • 65
  • 107
-1
votes
1 answer

Load a dozen UIView of the same type from a NIB

this might be a dumb question but I found nothing to it... I stumbled over a piece of code that I think can be optimized. I have a viewcontroller that consists of 24 notes/postits. the following gets called during the view-did-load-process: for…
Tom
  • 213
  • 3
  • 10
-1
votes
1 answer

nib objects gets bad access even though it have been retained by property

I have nib file having lots of UIViews(More than 100), Also I am creating 500+ UIViews using Code. Just FYI, Application is kind of Game board with Blocks. Problem, Randomly application get crashed on nib objects while playing game. I am not able to…
jaym
  • 1,253
  • 13
  • 18
-1
votes
1 answer

how to implement the core animation layer property in code

I set the Core Animation Layer of NSButton in the xib file, like below: I'd like to know how to set it in the code. Thanks!
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
-2
votes
1 answer

My swift binary framework with view controllers have missing outlets

I created a swift binary framework with view controllers inside it. The view controllers contains iboutlet properties like button, label, etc. But when I subclassed the view controller the outlets are missing in the interface builder. Even the…
FrenchGuy
  • 11
  • 1
-3
votes
2 answers

Nib.load() error - Trying to load PNG and DICOM images to be resized for FCNN

Have 40 DICOM and 40 PNG images (data and their masks) for a Fully CNN that are loaded into my Google Drive and have been found by the notebook via the print(os.listdir(...)), as evidenced below in the first block of code where all the names of the…
user13349602
-3
votes
2 answers

Step by step--how to add tableview to nib

I'm working with nib files for the first time and trying to add a tableview with a tableview cell. I created a nib file of type UIView controller, then I dragged the tableview onto the view, and in the viewcontroller.swift I added all of the…
jjjjjjjj
  • 4,203
  • 11
  • 53
  • 72
-3
votes
2 answers

Parse Starter Project for iPad

I know it's very vague and is asking a lot but does anyone know how to convert the standard iOS starter project from iPhone to iPad (both is best)? Or does anyone know where I can download one. I am a new iOS developer and am trying to start…
Isaiah Turner
  • 2,574
  • 1
  • 22
  • 35
-5
votes
2 answers

UITableViewCell in nib or storyboard

Hi what's the difference of using nib or storyboard on custom UITableViewCell? I'm planning to create Facebook News Feed using custom uitableviewcell with dynamic height.What's more flexible to use? EDIT: Why did you down-vote my question? I don't…
Ron Pelayo
  • 655
  • 2
  • 7
  • 22
-6
votes
1 answer

How to load a View Controller SubClass with a nib without specifying the nib name as a string?

When you load a UIViewController Subclass programmatically, any nib associated with that ViewController will not be loaded if you named any of the files a different name than your subclass. The only way to load the nib automatically, without passing…
user2849654
1 2 3
76
77