storyboard

How can I switch views programmatically in a view controller? (Xcode, iPhone)

懵懂的女人 提交于 2019-12-17 10:20:11
问题 Have been struggling with this for a while, and can never seem to get a direct answer. Any help is appreciated! 回答1: If you're in a Navigation Controller: ViewController *viewController = [[ViewController alloc] init]; [self.navigationController pushViewController:viewController animated:YES]; or if you just want to present a new view: ViewController *viewController = [[ViewController alloc] init]; [self presentViewController:viewController animated:YES completion:nil]; 回答2: If you want to

iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior

泪湿孤枕 提交于 2019-12-17 10:18:09
问题 I've built a small app using storyboards and it ran great. Just before final testing I decided to try it out to see if it runs on iOS 4.3. I clicked on the gray 5.0 in the project settings and selected 4.3. The app failed to build with the following error message: Storyboards are unavailable on iOS 4.3 and prior Both the iPhone and iPad storyboards tell me that. The issue that when I switched back to iOS5 target, I still keep getting these errors from both storyboards, and the product won't

Want to create a cool static UI but : “Static table views are only valid…”

落爺英雄遲暮 提交于 2019-12-17 09:40:02
问题 So I'm creating a View like : For this I'm trying to use a Storyboard in wich I add 2 TableViews (both as 'Static Cells') and then I manually add my Cell content directly from the storyboard... In my storyboard it looks great but when I build I get : en.lproj/MainStoryboard.storyboard: error: Illegal Configuration: Static table views are only valid when embedded in UITableViewController instances If you guys have any ideas on this issue. Thanks ! 回答1: Add a UITableViewController to your view.

How to customize the navigation back symbol and navigation back text?

末鹿安然 提交于 2019-12-17 07:42:06
问题 This is the back icon and back text now: But if I want my navigation back like this: I have tried to set the back to my want icon image: But it useless. 回答1: You can hide back button text in many ways.Try this simple approach. Step1: Goto your mainstoryBoard and click navigationBar . Step 2: Goto Attributes Inspector under Navigation Item add a BLANK SPACE in Back Button Step 3: If you want to change backButton text method is pretty much the same. Update 1: If you want to use an image as a

Programmatically change rootViewController of storyBoard

纵饮孤独 提交于 2019-12-17 04:21:32
问题 I have created my project using Storyboards . The root ViewController lies inside a Storyboard , I have not written a single code in the appDelegate . Now I want to show a tour of my app, so I want to change the root ViewController from Tab Bar to my TourVC and when the tour of the app is finished , I want to again switch back my root ViewController to Tab Bar . So I looked up online and followed the following points 1) Remove Storyboards from app.plist file, 2) Uncheck option

Programmatically change rootViewController of storyBoard

主宰稳场 提交于 2019-12-17 04:21:11
问题 I have created my project using Storyboards . The root ViewController lies inside a Storyboard , I have not written a single code in the appDelegate . Now I want to show a tour of my app, so I want to change the root ViewController from Tab Bar to my TourVC and when the tour of the app is finished , I want to again switch back my root ViewController to Tab Bar . So I looked up online and followed the following points 1) Remove Storyboards from app.plist file, 2) Uncheck option

Adaptive segue in storyboard Xcode 6. Is push deprecated?

回眸只為那壹抹淺笑 提交于 2019-12-17 04:10:46
问题 Xcode 6 interface builder by default has new checkbox "use size classes". It makes views adaptive. When I try to make segue between 2 views in my storyboard I have new options: instead old: Now we have "show" and "present modally" instead of "push" and "modal". The old options are marked as deprecated. I've chosen "show" option, because in segue settings it called "show (e.g. push) But it doesn't make push. Segue animation looks like slide from the bottom (modal) and navigation bar disappears

How can I load storyboard programmatically from class?

蹲街弑〆低调 提交于 2019-12-17 01:38:10
问题 My problem is that I was looking for way to use both storyboard and xib . But I can't find proper way to load and show storyboard programmatically. Project was started developing with xib, and now it's very hard to nest all xib files in storyboard. So I was looking a way to do it in code, like with alloc, init, push for viewControllers. In my case I have only one controller in storyboard: UITableViewController , which has static cells with some content I want to show. If anyone knows proper

In a storyboard, how do I make a custom cell for use with multiple controllers?

此生再无相见时 提交于 2019-12-16 22:35:11
问题 I'm trying to use storyboards in an app I'm working on. In the app there are Lists and Users and each contains a collection of the other (members of a list, lists owned by a user). So, accordingly, I have ListCell and UserCell classes. The goal is to have those be re-usable throughout the app (ie, in any of my tableview controllers). That's where I'm running into a problem. How do I create a custom tableview cell in the storyboard that can be re-used in any view controller? Here are the

xcode 5 localize storyboard with script delete *.strings file?

一个人想着一个人 提交于 2019-12-14 04:07:12
问题 sorry to make another bother. I'm implement an app, with localization of English and Japanese in xcode 5, using the script file created by André Pinto, based on SIngle Storyboard for multiple languages. Well, before upgrade to xcode 5 (xcode 4.6, I mean), things work properly. But since xcode 5, this error occurs when run the script file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version