storyboard

Adding UIPickerView to a UITableViewCell

折月煮酒 提交于 2019-12-24 16:35:08
问题 I want to add a UIPickerView to a UITableViewCell. Right now I am just getting a black window. Can someone also explain me the concept of subclassing UI objects to a cell ie:when do we make our cell as the delegate and the datasource delegate? Thanks EDIT: Here is the code of what i am doing right now case 1: { cell = [tableView dequeueReusableCellWithIdentifier:@"groups"]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"groups"];

Displaying checkmark on cells iOS 5

ぃ、小莉子 提交于 2019-12-24 15:33:21
问题 I am creating a basic checklist app and would like to know how to make a cell display a simple checkmark once it is touched. I have used no coding up to this point and have done everything in storyboarding. I have a single view that contains 10 cells. Each cell is a "task". I would like to display a checkmark on each cell as it is clicked. I know some basic objective-c but am not advanced. 回答1: the clue is within the accessory of a table cell, you should use something like cell.accessoryType

Could not load NIB in bundle using storyboard

邮差的信 提交于 2019-12-24 14:54:13
问题 With the last version of iOs 8.3, I get this error when I run one of my app: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle The app has 2 storyboards, one for iPhone (working normally) and the other for iPad (crashing). I've tried the suggestions of this topic with no results: Xcode 6.3: Could not load NIB in bundle In my case I'm using StoryBoards and I've no flag on "Use size classes". Until iOs 8.2 the app

iOS - go to second uiviewcontroller of some tab from another tab

旧巷老猫 提交于 2019-12-24 14:39:12
问题 I'm developing an iOS 5 app using Storyboard. I have UITabBarController which has 3 tabs. Every tab has its own UINavigationController . UINavigationController of first tab has one UITableViewController which segues to another UIViewController etc. UINavigationController of second tab has only one UIViewController . What I want to achieve is to navigate to UIViewController (second view in UINavigationController of first tab) when certain action happens in UIViewController of second tab. I've

The document “Main.storyboard” could not be be opened

删除回忆录丶 提交于 2019-12-24 14:37:06
问题 I'm using Git and we are 2 people coding together. I pulled my friend's code, run it and it worked as it should be. Then I merged our parts and cleaned conflicts (almost all of them were in storyboard). Since i'm doing this merge process for a while, i'm not all stranger for these details. However, when i run the merged version of code, i get the error: The document "Main.storyboard" could not be opened. The operation couldn’t be completed. (com.apple.InterfaceBuilder error -1.) I can't open

Stopping ScrollView Going Above & Below The Bounds

人盡茶涼 提交于 2019-12-24 14:28:42
问题 I created a UIScrollView in a ViewController and added UIView & UITableView as siblings of ViewController. var pageSize = view.bounds.size // MiniQuestion: I disabled vertical indicators but it caused a gap for the width // of the indicator, so I added the gap manually. Is it okay behaviour? pageSize.width += 5 MyView.backgroundColor = UIColor.redColor() MyTableView.backgroundColor = UIColor.blueColor() let pagesViews = [MyView , MyTableView] let numberOfPages = pagesViews.count for

Storyboard Controllers not Deallocating

别说谁变了你拦得住时间么 提交于 2019-12-24 13:57:56
问题 My Initial View Controller of the storyboard load another view controller using performSegue:withIdentifier method which in turn loads some other controller using same performSegue:withIdentifier method. However, neither the initial view controller nor the second view controller are deallocating. They both tend to have a reference count of 1 as seen via instruments. I need to send user back to first controller when he logs out of application. The only way I have figured so far is to use

Tabbar is not showing in extended views in XCode

为君一笑 提交于 2019-12-24 13:47:21
问题 ! am an objective c beginner. I have researched hours on this issue and have watched youtube videos but still cant solve this problem - I have created tabbar controller with first view as the first tab as dispalyed in the pic. I then tried to extend the first view with two more views: one master table view and one detail UIView. The first view is linked to the master table view through the button on the first view. I compiled to run the project, everything is smooth except the tabbar is not

Call NavigationController (xib) from ViewController (storyboard)

拟墨画扇 提交于 2019-12-24 13:42:08
问题 I'm normally just use storyboard for my iOS, but needed to integrate an SDK which does not use storyboard, rather xib. My initial view controller is from storyboard, and when a button is pushed (IBAction), I would like it to go to the xib view controller, but not sure how programmatically to do so. Here is my AppDelegate: //AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:...{ // set to storyboard on launch UIStoryboard *mainStoryboard =

XCode 9.3 WatchKit crash on WKInterfaceButton tap

一个人想着一个人 提交于 2019-12-24 13:33:36
问题 A button crashes on tap (watch simulator and real device) : Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) inside the framework/function libswiftCore.dylib swift_getObjectType The button has a “ Sent Action ” defined in the storyboard , but no segue, other buttons work well, adding a segue to the button seems to resolve this issue. This occurs on Xcode 9.3 ( did not occur on previous versions) Any ideas? I want to understand whats causing the crash - hate leaving stuff unresolved. 来源: https:/