storyboard

UIViewController half screen “drawer slide” animation

笑着哭i 提交于 2019-12-09 11:40:05
问题 I am trying to have a UIViewController that appears with a "slide" animation from the right. Not like a Push segue, not like the Facebook app. I want the new ViewController to slide ON TOP of the current one (not push it away), but only cover PART of the screen, leaving the other part showing the first ViewController. What I have tried: The closest that I have gotten is by creating a custom segue with the following: - (void)perform { __block UIViewController *src = (UIViewController *) self

UIButton touch up inside event not working in ios5 while it's ok in ios6

假装没事ソ 提交于 2019-12-09 11:10:38
问题 I had a project which contains lots of UIButton, using xcode 4.5 and storyboard and ARC. after testing in ios6, everything goes fine. But in ios5, UIButton touch up inside event not working, the action not called. I tried to use touch down and it works. However, I have a lot of UIButton, I cannot change that one by one. what's more, the touch down event does give a good experience. I used code below in many of my view controllers: in viewDidLoad: UITapGestureRecognizer *tap = [

Change detail view from MasterDetail iPad app using storyboard

ε祈祈猫儿з 提交于 2019-12-09 08:51:45
问题 I'm little lost here. I have a basic master-detail aplication, and I want to change the detail view according to the selected row in MasterViewController, but the views have different content, one has an image gallery, and the other one will load a video on full screen. It's not just refresh the detail view, have to load another view. How is the better(fast) way to do that? 回答1: I'll suggest you to use a replace segue . Just create a segue to the desired view initiated by your row with a

How to skip the login scene and start straight from the next if you are already authorized?

徘徊边缘 提交于 2019-12-09 06:45:04
问题 What is the best place to check if the user is already logged-in and how to realize the transition to the first app scene skipping the login viewController? 回答1: I do this in my AppDelegate. In my main storyboard, my initial view controller assumes that my user is logged in. Thus, in my AppDelegate I do the following to decide whether I need to show the login screen: // Show login view if not currently logged in if (!currentUser){ let sb = UIStoryboard(name: MainStoryboardId, bundle: Bundle

Localization on the fly with localized Storyboards

旧街凉风 提交于 2019-12-09 06:18:58
问题 I'm working on an app that has a toggle button to switch between English and Arabic language and should be on the fly. I'm using the method in https://github.com/maximbilan/ios_language_manager and it works fine in all cases except if the storyboard is localized by interface not strings: Now when I reload the root view controller like this: func reloadRootVC(){ let delegate : AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate let storyboard = UIStoryboard(name: "Main",

Change an image during animation using storyboard

試著忘記壹切 提交于 2019-12-09 05:42:29
问题 I was looking for a way to change an Image during a storyboard, or more specifically, change the Source property of the image to point to a new image resource. There seems to be a StringAnimationUsingKeyFrames and a DiscreteStringKeyFrame but this does not work (as far as I can tell) since the Source property of the Image is of type ImageSource My current storyboard looks like this <Storyboard x:Key="TransitionImage"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName=

Is the use of storyboards in Xcode 4.2 production ready and recommended? (c.f. previous XIB methods)

自闭症网瘾萝莉.ら 提交于 2019-12-09 05:19:16
问题 Is the use of storyboards in Xcode 4.2 production ready and recommended? That is, would iPhone/iPad developers that have used storyboards recommend (for native iPhone/iPad apps) to definitely use storyboards? Or are there some gotchas and issues still with the concept? P.S. Also do storyboards assist in getting a Universal Application designed/working? 回答1: This depends, for the most part, on your target audience. The only potential deal-breaker is the fact that using storyboards requires you

iPhone Storyboard Editing a table view

我的未来我决定 提交于 2019-12-09 04:45:00
问题 I've been trying to learn the new Storyboard feature in Xcode and I've run into a problem with trying to set a UITableView to edit mode. So far my storyboard looks like this: NavigationController -> UIViewController (subclass with tableview property) I added a Navigation Item and a Bar Button item to the view controller scene, so I do see an edit button. It didn't do anything automagically, so I tried linking it's selector to the setEditing method of the tableview delegate. This did put it

Cannot add right bar button in navigation bar in storyboards iOS8

℡╲_俬逩灬. 提交于 2019-12-09 04:32:42
问题 As the title suggests, I would like to know if it is possible to avoid adding right bar button in the navigation bar through code. I've done the usual process with a view controller embedded in a navigation controller and trying to drop the bar button item inside the navigation bar of the view controller, but it no longer works for some reasons. So is it possible to be done in the storyboard somehow in iOS 8? Xcode ver. 6.2 Stable 回答1: Well, it seems there is a problem with the differences

Switching between localized storyboard at runtime

我是研究僧i 提交于 2019-12-09 04:21:40
问题 I have iPhone application using storyboard with two language (Arabic / English) how i can switch from Arabic localization storyboard to English storyboard without need to change language iPhone settings (At run time) 回答1: I have resolved you can do it as the following below code : UIStoryboard *storyBoard; if ([language isEqualToString:@"ar"]) { lan = [[NSLocale preferredLanguages] objectAtIndex:0]; storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone5Arabic" bundle:bnd]; }