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
0
votes
1 answer

Obj-C: UIView from Nib being released between willAppear and didAppear

I have a view in a nib, which is linked to a property in my viewcontroller with the following line: @property (unsafe_unretained, nonatomic) IBOutlet UIView *otherView; It is unsafe_unretained because we are targeting ios 4 devices, but using…
dark_perfect
  • 1,458
  • 1
  • 23
  • 41
0
votes
0 answers

how to add a ready-to-use project to Three20UI

I have a ready-to-use project ( microblog ),I want to add the microblog project to my other project which has Three20 integrated in. From the - (void)clickActionItem {}; function of the three20UI, to call the microblog project. And now, I can call…
user1188849
  • 107
  • 1
  • 12
-1
votes
2 answers

In Objective-C with no nib file is MVC to have the logic together with the view in same class?

When I work in Objective-C programatically with out nib files, and have the logic in my: appViewController.m having in the same class What is going on with that view, as well as with the View elements? Is this against the MVC pattern? Do I have…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
-1
votes
1 answer

How to populate two different xib files in one UITableViewCell depending on a condition? in Swift

I have tableView that populates multiple cells. In one of the cell I want to populate 'xib1', if I have data in my array. But if I have 'nil' in my array I want to populate 'xib2' in the same tableview instead of 'xib1'. How shall I achieve this…
iosDevSan
  • 65
  • 1
  • 13
-1
votes
1 answer

Error Related to Tables With Embedded Sections in NIB

I'm creating a series of NIBs to allow reuse of views that are used as panels in an app. I prototyped the first such by just using a view in the storyboard, and added outlets. One of the items in it was a table view. When I copy the components from…
Dan Donaldson
  • 1,061
  • 1
  • 8
  • 21
-1
votes
1 answer

Objective C - Random XIB pick

I have already posted another question about this, but no one seemed to know how to do this. I want my app to pick a random XIB file for me, but dont use the ones that have already been randomly picked. So heres what i have set up as of right now,…
Jacob
  • 1,459
  • 2
  • 19
  • 32
-1
votes
1 answer

Swift: addSubview is placed on previous view

I use this code for add two view on to parent : let view0 = StarClass.createMyClassView() parent.addSubview(view0) let view1 = StarClass.createMyClassView() parent.addSubview(view1) This code work fine, but view1 not placed bottom of view0 view1…
salari mameri
  • 228
  • 5
  • 13
-1
votes
2 answers

unrecognized selector sent to instance error in view controller instantiated from a nib

I created a UIViewController called FacebookLoginView with a nib file for it. The nib's File Owner is set to FacebookLoginView. I added two buttons on it and have added the IBActions in the .swift file. import UIKit import FacebookLogin class…
Isuru
  • 30,617
  • 60
  • 187
  • 303
-1
votes
1 answer

Could not load the nibName issue (xamarin)

We start to prepare project with generic solution for few apps using Xamarin studio (the idea is to let all our apps use same "Core" components). We started from preparing general "Core" with base functionality. Also we add "subCore" - libraries…
hbk
  • 10,908
  • 11
  • 91
  • 124
-1
votes
1 answer

Xcode swift Terminating app due to uncaught exception 'NSUnknownKeyException

I have an array like this : let listCourse = ["Pommes", "Framboises", "Pâtes", "Tomates", "Boudoirs", "Coca", …
Sam Caneau
  • 69
  • 1
  • 1
  • 11
-1
votes
1 answer

Load a nib into a collectionView cell using Swift 3

I'm trying to load a nib into a collection view cell programatically but I'm getting an NSException error. Can't figure out why. if let nib = Bundle.main.loadNibNamed("CardCellBottom", owner: self, options: nil)?.first as? CardCellNib { …
user7684436
  • 697
  • 14
  • 39
-1
votes
1 answer

Which objects are contained in a Nib file?

At first I thought the nib only produced the sub view (the destination object instance that had an owner, namely, the view controller). Now from my understanding (or misunderstanding) the view controller (the owner) is actually contained in the same…
user7024499
  • 951
  • 1
  • 10
  • 24
-1
votes
1 answer

Could not load NIB in bundle

2016-06-10 16:16:15.340 SwipePageTest[4625:434547] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle…
Somax
  • 1
  • 1
  • 1
-1
votes
1 answer

Button not showing in .nib file

So I downloaded CircleView and tried to change the code. The program came with a button, color wheel, 2 sliders, and a view. When ever I add anything (Slider, button, textfield), on run time the things I added wouldn't show up. What am I not…
31i45
  • 315
  • 1
  • 2
  • 12
-1
votes
2 answers

How to order more than one view in xib file iOS

In my nib file there are three views, I don't show all of them at the same time. Please take a look at this picture : of course the real situation is more complicated than this picture because i have other subviews (buttons , labels ...) in each…
user3516596
  • 339
  • 5
  • 14
1 2 3
76
77