xcode-storyboard

NSInvalidArgumentException after manually triggering seque

青春壹個敷衍的年華 提交于 2020-01-15 23:01:10
问题 I'm in the "awesome" position to have to support someone else's code even though before this project I have never worked in objective C or made iOS apps, so please excuse me if I'm doing something really obvious or stupid. I needed a new view controller with a custom class. First I drew the view on my storyboard. Then I created a new class which I derived off of UIViewController. Then, I set the view's custom class to this new class I made. I hooked up the single button on the view to the

How can I make my UIView visible in Xcode's Storyboard editor?

半城伤御伤魂 提交于 2020-01-15 11:49:06
问题 Please have a look at the screenshot that shows a part of a storyboard in Xcode. It is one controller. On the same level as the controller there are two UIViews "Date Picker View" and "Input Accessory View". In the controller itself, they are shown in the bottom toolbar (see 2nd screenshot - the two icons to the right are tiny previews of the the views). But how can I edit them? I cannot get them on the screen! I know they are there but I'd like to edit them (used to work before I made them

Could not cast value of type 'UINavigationController' to 'jacrs_ios.TopViewController'

人盡茶涼 提交于 2020-01-05 05:42:06
问题 I'm new to Swift and I was trying to make a side menu base on the tutorial that I was following but I ran across with this error. "Could not cast value of type 'UINavigationController' (0x1026054a8) to 'jacrs_ios.TopViewController' (0x1009ac510)." I noticed that there were same problems already existing here but I still dont understand. I'm gonna included the current storyboard in case I did something wrong. Thanks. ViewController Error override func prepare(for segue: UIStoryboardSegue,

swift and unexpectedly found nil while unwrapping an Optional value

折月煮酒 提交于 2020-01-03 06:41:11
问题 I have a class: class ListOfEventsController: UIViewController, UITableViewDataSource, UITableViewDelegate { and it contains a function: func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("CELL") as! SingleEventCell and when I run it - it causes an error that says fatal error: unexpectedly found nil while unwrapping an Optional value but when I go to my story board I see: and when I

Xcode 8 Storyboard error

痞子三分冷 提交于 2020-01-03 01:54:12
问题 I am working on building an app. Earlier I have used Xcode 7.1 at that time everything was working fine. Recently I have installed Xcode 8.0 as well and I have both the setups installed into in two different directories Xcode_7, Xcode_8 and I renamed the setup files as well. Everything was working fine but lately I am getting the following error while working with Xcode 8. "An internal error occurred. Editing functionality may be limited " and the storyboard view objects are all gone empty

What is the quickest way to clean up all warnings in all XIB / Storyboard files In Xcode 7

孤者浪人 提交于 2020-01-02 10:32:19
问题 In Xcode, whenever I see warnings (usually about misplaced elements) appear in the XIB / Storyboard, I have to: Select the container (Usually the containing view controller or the top most view) From the Xcode menu select Editor -> Resolve Auto Layout Issues -> All views in <container name> -> Appropriate action ( For instance: Update frames ) to resolve the issues. The above method takes requires steps and a bit time consuming to me. It would be great if I could: - Resolve all warnings for

UITableView cells not nil at initialization

 ̄綄美尐妖づ 提交于 2020-01-01 05:53:50
问题 I am setting up my UITableView using storyboard editor. For creating my cells I am using the standard delegate method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SearchResultCell"]; if (cell == nil) { // Do cell setup } // etc return cell; } Except when the cell is dequeued the very first time it's not nil, as it should be. So the code inside the if statement is

UITabbarController's “Done” button hidden behind UINavigationController

∥☆過路亽.° 提交于 2019-12-25 06:49:08
问题 I'm building a project using Xcode 4.2 and I'm also using the Storyboard. So basically, I have a UINavigationcontroller which is my initial view, connected to my "Main Menu" view. Inside my "Main Menu" I have a button that is linked to a tabbar controller, which has like 20 tabs. Therefore, a "More" button appears and when the "more" button is clicked an "edit" button appears. Everything works fine, but the only problem I have is that once I click edit, the configure page slides up and the

Storyboard scroll view with text boxes

半城伤御伤魂 提交于 2019-12-25 05:16:17
问题 I am creating a view in a storyboard that has a bunch of text boxes with a button at the bottom. When I click in the text box the keyboard appears. This hides some of my text boxes. All text boxes live within the scrollview. Is there a way in storyboarding (if not then in code) to make the scrollview scroll properly amongst all the content when the keyboard appears? Do I have to dynamically change the content size when the keyboard appears, or is there a way that I can set up the scroll view

iPhone [self performseguewithidentifier… ] is not showing the new view controller

邮差的信 提交于 2019-12-25 05:09:14
问题 I have been all over stackoverflow and all over Google and I cannot seem to figure this one out. Here's my scenario: I have my app's "main screen" where the user first makes decisions about what they're going to do. The app works off of a CoreData database which is created by "importing" XML files. The user can choose to open an XML file attached to an email in my application, which automatically triggers my main screen to show up and run the import of the file. I can get this far without any