uistoryboard

Using a storyboard reference to a storyboard in a different project/bundle appears broken

人盡茶涼 提交于 2019-11-30 08:19:47
问题 Now, I have a workspace which have two project inside, one is call "ProjectOne" and the other is "ProjectTwo" as follow: They have a storyboard respectively and now I want to connect two storyboard by pressing the "To Project Two" as follow: but when I click the button, it show "Terminating app due to uncaught exception 'NSInvalidArgumentException', >reason: 'Could not find a storyboard named 'two' in bundle NSBundle 8C6A5FDC9E06/ProjectOne.app> (loaded)'" Is it possible to do that? I seeking

How to incorporate storyboards into a cocos2d 2.0 project?

寵の児 提交于 2019-11-30 07:32:42
I have made a project in cocos2d 2.0 and would like to incorporate a main menu using storyboards. I have tried Jerrod Putnam's tutorial here on tinytimgames.com (I can't provide the link because new users are allowed only 2 links per post, but if you google "cocos2d storyboard" it is the first link) but it did not work for me. I followed it exactly (I think). I opened my cocos2d project and imported the files from his github, the CCViewController.m and .h and then created a new storyboard file and followed the tutorial. However when I ran it, it just started straight on my cocos2d game and not

Xcode 4.2 iOS 5 : Multiple segues from a UITableView

别来无恙 提交于 2019-11-30 07:03:40
I'm starting now with Xcode on 4.2 for iOS5 and there are a few changes and I'm now crossing a problem that I can't figure out a way to solve it. I'm doing an example with a UITablwView that is populated programmatically with 2 Sections, 1st section with only 1 Row, and 2nd Section with 3 Rows. My aim is to select a row from the table, and based on that row, the user will be redirected to different Views. For example: selecting section 0 row 0, app pushes to view 1 - name setting // selecting section 1 row 0, app pushes to view 3 - address setting The old fashion way, this is quite simple,

OS X storyboard: how to show a window programmatically?

為{幸葍}努か 提交于 2019-11-30 05:48:49
问题 I am creating an OS X status bar application. I am trying to achieve the following: app starts invisible, with menu bar item click on menu bar item shows the main window on deactivate, the window is hidden So I am trying to programmatically show the main window when the menu item is clicked, but with no success. My main window has "Hide on deactivate" checked. Once hidden, I cannot make it visible again using code. Here is the code I have for now, but it doesn't work: @IBAction func menuClick

UIStoryboard how to replace constraints programmatically?

我只是一个虾纸丫 提交于 2019-11-30 05:39:41
问题 I have a view controller laid out in a storyboard with autolayout enabled and am looking for a way to change constraints to allow for my view to rotate into landscape and rearrange buttons on the screen. When I try the code below, I get about two dozen "unable to satisfy constraints, breaking constraint..." messages that I cannot really decode. Is there a way to dynamically replace constraints from a storyboard with constraints that I specify programmatically? I want to completely override

how can I make the uiviewcontroller visible only once during first run of the app (e.g. tutorial)?

北慕城南 提交于 2019-11-30 05:27:40
I'm creating an iOS swift app and I want to show tutorial screen when user runs the app for the very first time. Later on, with each run of the app the tutorial should be hidden and another view controller should be visible as a starting point. So far my storyboard looks like this: It contains two screens of tutorial (1st and last) and tab bar (which is a main window of my app). As for now, in storyboard I chose the tab bar to be an initial view controller: And with that approach the tutorial screen is never seen. How can I show it only once on first launch app and then skip it each time user

UItabbar item not showing storyboard reference

孤街醉人 提交于 2019-11-30 04:20:54
I'm trying to use the new storyboard references in a tabbar. When I use the storyboard reference, the UITabBarItem (with customized image & text set), isn't showing anything. See setup: storyboard setup tabbaritem setup I fixed it for now by setting the images & title in the initWithCoder function for the initial viewcontroller in the referenced storyboards like so: static NSString *const ContactsViewControllerTabContactImageName = @"tab-contact"; static NSString *const ContactsViewControllerTabContactActiveImageName = @"tab-contact-active"; - (instancetype)initWithCoder:(NSCoder *)aDecoder {

Display ABPeoplePickerNavigationController using storyboard segue

萝らか妹 提交于 2019-11-30 04:03:35
问题 I have a new project where I want to display a People Picker, when a button is touched. So I have a UIButton that segues to a generic UIViewController with the identifier showContacts . I set the class of this ViewController to ABPeoplePickerNavigationController . Now in my root ViewController I have this code to initialize my picker: #pragma mark - Segues -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if([segue.identifier isEqualToString:@"showContacts"]){

Xcode Localization is driving me nuts! Not loading Storyboard

扶醉桌前 提交于 2019-11-30 03:15:55
It's been 2 days this issue is driving me nuts. I'm trying to localize my iOS app but for the life of me I can't get it to work. It works easy enough when I try on a blank project but not on my current project. I've added the languages in the Localizations using "+", I've localized the storyboard but when I check on simulator or device I still see the english version. And in fact it's not even the English one because if I change the Maintsoryboard (english) I don't see the changes in the device ... I still see the initial texts. I've tried reseting the simulator, deleted the app, etc. No luck.

Moving UIView from bottom to top

我与影子孤独终老i 提交于 2019-11-30 02:29:32
How can I move a view from bottom to top on my code: colorView.hidden=NO; colorView=[[UIView alloc]init]; colorView.frame=CGRectMake(0,480,320, 480); colorView.bounds=CGRectMake(0,200,320, 280); colorView.backgroundColor=[UIColor greenColor]; colorView.alpha=1.0f; [webView addSubview:colorView]; [self.view addSubview:webView]; [self createTransparentView]; So how can I add the animation here? Vinodh Initially, add your view: self.postStatusView.frame = CGRectMake(0, 490, 320, 460); For the animation from bottom to top add below: [UIView animateWithDuration:0.5 delay:0.1 options: