xib

iPad app crashes on loading nib only on device not in simulator

大憨熊 提交于 2019-12-11 03:07:16
问题 I know this question has been asked before and I spent a lot of time following the suggestions in various threads, not just on this site, but to no avail. I'm developing an app for the iPad which consists of multiple views. Each one of these views contains a UITableView. Some of the TableView cells contain custom cells implemented with a UITableViewCell. The problem now is that I can run my app without problems on the iPad Simulator but not on the actual device. On the device - as soon as I

Loading xib with device modifier broken in Xcode 6.3 iOS 8.3 iPhone 6+

这一生的挚爱 提交于 2019-12-11 02:25:39
问题 2015-04-08 22:15:24.756 WSL[391:43257] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/mobile/Containers/Bundle/Application/0FA355FC-B3D0-4B73-94F2-7E1D09B8B178/WSL.app> (loaded)' with name 'myXibName'' *** First throw call stack: (0x1853182d8 0x196b440e4 0x185318218 0x18a1783ac 0x189e961b0 0x189ed1e10 0x1001020c4 0x10028db40 0x18a059a68 0x18a04d890 0x189e39268 0x189d55760 0x18969de1c 0x189698884

Custom view (xib) not visible on storyboard

假装没事ソ 提交于 2019-12-11 02:23:08
问题 I have a custom view xib where I have multiple TableViews . I am loading this inside a ViewController as a nested view: ViewController |_ View |_ View (This is where I load my Custom View) When I run my app, I can see the empty tables on screen, so my xib is loading correctly. So far so good. My problem is, I am unable to see my tables in the storyboard. So I am not able to ctrl +drag and proceed further. How can I see my custom view inside the storyboard view? 回答1: Storyboards can only

Facing Issue with CGAffineTransform in NIB

梦想的初衷 提交于 2019-12-11 02:20:00
问题 I have 2 Views ( viewLeft , viewRight ). I am rotating these views with angel 0 (initial setup) by calculating the same anchor point so that it looks like views are rotating across hinge. I have done below code, which is working fine if I took the views in storyboard (viewcontroller) and it does not work if I copy and paste same views and code in nib. In Nib, at 0 angel views leaves some space between them. It is weird behavior, I checked all code outlets and constraints, everything is fine

Load XIB into a UIView

怎甘沉沦 提交于 2019-12-11 02:04:49
问题 I have a UIView that is not covering the entire screen of an iPhone... about 200 pixels by 300 pixels. I'm trying to load a xib into this view, but it seems to have an issue. The code works, but the UIView takes over everything at fullscreen... not at the determined width of the UIView. Here is the code I have: incViewPopUP = [[[NSBundle mainBundle] loadNibNamed:@"IncidentsViewController" owner:self options:nil] objectAtIndex:0]; I also tried adding it as a subview like below.. but that also

Subviews for custom UIView with Nib (.xib) don't load?

别说谁变了你拦得住时间么 提交于 2019-12-11 01:18:06
问题 I am trying to create a custom UIView class with an associated Nib (.xib) file to help with layout and creation. Right now, no subviews in my custom view appear, even though they exist in my nib file and are hooked up properly to my custom view class via IBOutlets. I tried going through the following other answer: Load custom UIView with XIB from a View Controller's view using IB and this one: How do I get a view in Interface Builder to load a custom view in another nib? and this one: http:/

Multi language lable changes in the .xib file.

删除回忆录丶 提交于 2019-12-10 22:14:16
问题 I have to develop the application into Four(4) languages (English, French, Italic, Spanish). So, for that I want to know is there any way to display different language data using only one(1) .xib file in the top bar. Example: I have the Setting.xib (.xib file) in which there are four labels in the view part and in the top bar of that Nib file I want to change the label names according to the set language using One & Only one Nib file. So, please give me the appropriate solution. Which will

Convert iPad xib to iPhone xib

北战南征 提交于 2019-12-10 20:38:14
问题 I have seen many posts and tutorials about converting iPhone xibs to iPad xibs, but I want to do it the other way around. The only resource I've been able to find is this : Convert iPad application to iPhone? And it only covers compilation and code deviation. I know about the ~ipad / ~iphone xib postfix trick, but would like to get a head start on generating the iPhone xib, so that I don't have to create it from scratch, but can start with an automatically modified version of the original xib

Convert Storyboard to XIB

荒凉一梦 提交于 2019-12-10 17:13:27
问题 I created an app using the iOS 5 Storyboard feature, and have decided I would like it to also run on iOS 4. How can I convert my Storyboard (Which only contains one ViewController) into an XIB? Also, will ARC compile for iOS 4? 回答1: I don't think there is an automatic way to go from storyboard to xib. i think you will need to make the nibs and copy paste. ARC will run on iOS 4. The compiler inserts the necessary extra code to free memory for you. ARC works from 4.0 on. 来源: https:/

Removing interface elements from an xib file

青春壹個敷衍的年華 提交于 2019-12-10 14:48:36
问题 I have added some items, such as the pictured "round rect button" in Interface Builder to my .xib file, but I am not able to remove them. If I just click on the 'x', it disappears, but it's not removed from the interface. How do I actually delete it? 回答1: Highlight the items as shown below and hit the delete key If you can't see the menu it can be expanded by clicking the arrow in this image 来源: https://stackoverflow.com/questions/9659017/removing-interface-elements-from-an-xib-file