storyboard

How to load view controller without button in storyboard?

大兔子大兔子 提交于 2019-12-24 01:47:06
问题 I want to load view controller without button. I set the identifier to 10 and tried to use if(...){ //load ViewController2 [[self storyboard] instantiateViewControllerWithIdentifier:@"10"]; } but nothing happens. with this function it s doesn t work too UIViewController *vc = [[self storyboard] instantiateViewControllerWithIdentifier:@"10"]; [self.navigationController pushViewController:vc]; here is my progect http://www.sendspace.com/file/kfjhd5 whats a problem? 回答1: Calling

How to Pass information Back in iOS when reversing a Gesture Recognizer using Swift?

梦想与她 提交于 2019-12-24 00:45:06
问题 I'm new to iOS Development, and Swift. And many of the resources I've found on the Google are written in Objective-C, which I am not familiar also. I have two view Storyboards, S1 and S2. Each of them have at least 1 View Controller, VC1 and VC2 respectively. I go from S1 to S2 using a Gesture Recognizer, not a Segue. On S2, I select a data taken from a Table View. When I press a value from the list on the table, I would like to send that values back to S1. What's the best way to do this

What is the mean of this error?

非 Y 不嫁゛ 提交于 2019-12-23 23:14:47
问题 My application is working very well for first time in the sumilator, when I rerun my app in simulator and press some button, I get this type of error. I am using Local DB, so I thought maybe it is reason for taking this error message? * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'UIViewController-Lat-JX-Ucy' and directory 'MainStoryboard_iPad.storyboardc'' * First throw call stack:

How to set the navigation bar to the top in Table View?

风流意气都作罢 提交于 2019-12-23 23:02:35
问题 How can i set the navigation bar to the top in a Table View within storyboard interface builder? Is it possible? If i add a navigation bar to my Table View i get it under my records only! I'm using Xcode 4.3.2 回答1: You should not add the navigation bar yourself. Interface builder will do that automatically when a scene is embedded into a navigation controller or part of the navigation stack. So if your tableview is the root controller choose your scene and then go to: Editor > Embed in >

simple alert view for connection check in a web view

◇◆丶佛笑我妖孽 提交于 2019-12-23 22:09:38
问题 dear Stackover community, Nearly a week I'm struggling around with the fact that I must have a connection check for my web view so I'm surviving the App review process by Apple :-) I know that I can use the Reachablity sample but for me as a beginner I would say its not smart to deal with such a code. I found out that it gets a bit simpler with a simple alert and code like this: -(void)webview:(UIWebView *)webview didFailLoadWithError:(NSError *)error { UIAlertView *alert = [[UIAlertView

pushing UIViewController without Navigation Controller

本小妞迷上赌 提交于 2019-12-23 21:15:49
问题 I was using that method for pushing another UIViewController in if condition : initViewController *MW = [initViewController alloc]; MW = [self.storyboard instantiateViewControllerWithIdentifier:@"init"]; [self.navigationController pushViewController:MW animated:YES]; Now i've changed my architecture and i just removed my Navigation controller. That's why , these steps will not help me any longer due to no NavigationController exist. Now how can i push another ViewController without pressing

Transferring data to another controller with segue. From the code

风格不统一 提交于 2019-12-23 20:20:14
问题 How to pass values ​​from one controller to another??? I use a StoryBoard. I would like this to appear on the highlighted text view of the first view. Call the next view of the code, I think something like this should look like: UIStoryboard *finish = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *viewController = [finish instantiateViewControllerWithIdentifier:@"FinishController"]; viewController.modalPresentationStyle = UIModalPresentationPageSheet; [self

Segue Unwind back to the last specific View controller

妖精的绣舞 提交于 2019-12-23 16:30:46
问题 Is there a way to have one button unwind back to a specific view controller? For example suppose I have ViewController A and B. Both modally segue to ViewController C. Now I understand how to segue unwind back to one of the previous view controllers (As was explained here) but how do I go back to the specific view controller that presented VC C? So to sum it up, what I'm trying to figure out is... If A segued to C then I want to unwind back to A when the button is selected. If B segued to C

How do i make a circular view collide with the paddle

本小妞迷上赌 提交于 2019-12-23 13:09:10
问题 Whenever the circular view collides with the paddle on storyboard, it actually collides with the rectangular frame of the view. How do I resolve this issue. I have also tried UIBezierPath , CAShapeLayer and it doesn't seem to be working. The red arrow is the colliding point, As it does not seem to be colliding with ball instead it collides with the frame of the view. once, the frame is touched with the paddle it bounces back and so on. 回答1: If you're using UIDynamicAnimator , you can define

Google Maps iOS SDK and storyboards

浪子不回头ぞ 提交于 2019-12-23 12:28:32
问题 I was hoping someone could explain how to get started with Google Maps and Xcode storyboards. I can't find any information about how to actually do it. I just need an example or the steps to take. There is this http://www.youtube.com/watch?v=r3H8dFG0UCY Google shortcuts video. But I can't see the code in the video. Any help would be appreciated, thanks. 回答1: Create in the View in which you want to insert the map a generic UIView, than in the file inspector, give it the custom class