FAQ Database Discussion Community


Popovers in Storyboard, how to handle the delegate

swift,delegates,storyboard
In a storyboard i have a view controller which has a segue to another viewcontroller, with the "Present As Popover" applied. If i don't add any code, this works as id expect. Issue: I need to get the delegate working so i can get data back from the popover. I...

How to set constrains in Xcode 6 on login viewcontroller

swift,storyboard,xcode6,autolayout,constraints
Hi Im creating an app where the first screen that shows I's a log in screen. I'm trying to figure out how to make the logo and title look good on all the iPhone's screen sizes. Right now I'm using "Center horizontally in container" and "Top space to top layout...

change Auto Layout dynamically

ios,iphone,xcode,storyboard,autolayout
I have to show 3 Labels like LABEL1 | LABEL2 | Label3 //Horizontally I want these 3labels width are equally divided according to Screen size width How can I achieve this with nib file directly? Thanks Question 2 Label1 | Label2 | Lable3 //All Labels widths are equally //All Labels...

UITableView second prototype cell does not appear to be respecting custom height?

ios,uitableview,cocoa-touch,storyboard,uikit
I am dequeuing the second prototype cell but the height of the cell appears to not be respected. Can anyone lead me in the right direction ? I have tried searching google with no avail. The problem has been solved,my solution is implementing in code: -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {...

Pass data in modal segue in storyboard?

ios,objective-c,iphone,storyboard,modalviewcontroller
My real problem is i want to pass data from childViewController to parentViewController in storyboard by modal segue. Code parentViewController.h @property (strong, nonatomic)NSMutableArray *address; childViewController.m parentViewController *parent=(parentViewController *)self.presentingViewController; post.address=@"Hello World"; This code throw exception like Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MainTabbarViewController setAddress:]: unrecognized selector sent to instance...

Need help applying animation in transform group in wpf

c#,wpf,xaml,storyboard
I have a piece of xaml that applies a scale transform and a rotatetransform. <Image.RenderTransform> <TransformGroup> <RotateTransform Angle="0" x:Name="RotateTransform"/> <TranslateTransform X="0" Y="0"/> <ScaleTransform ScaleX="2" ScaleY="2"/> </TransformGroup> </Image.RenderTransform> I also have a storyboard that needs to accesss RotateTransform like so: <Storyboard x:Key="Storyboard" Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)"...

Animate zoom factor programmatic in a ScrollViewer

c#,gridview,windows-runtime,storyboard,winrt-xaml
Is there a way that I can animate changing the zoom factor of a ScrollViewer for Windows Runtime? I'd like to be able to have an image inside one respond to a tapped event by returning to a default zoom of 1. While it seems that in Windows 8.1 Change...

Storyboard : Pop to root view controller from subview

ios,objective-c,iphone,uinavigationcontroller,storyboard
this is my first app so this should be simple for experienced ios developer. I have a story board with navigation controller and in one of my view controller there is a subview. On click in subview, I want to return to the root controller but unfortunately it is not...

iOS storyboard weird error

ios,storyboard
i am working on my xcode project. i have just clean the project and try to build the project. dont know what happen i got very weird error. *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'UIViewController-bSa-xT-TPG' and directory...

Why does the window background remain black in fullscreen?

osx,swift,cocoa,xcode6,storyboard
I have created a window without title by- override func windowDidLoad() { super.windowDidLoad() self.window?.styleMask = NSBorderlessWindowMask self.window?.movableByWindowBackground = true } I have set canBecomeKeyWindow by- override var canBecomeKeyWindow:Bool { get{ return true } } I have changed the background color of container view by- override func drawRect(dirtyRect: NSRect) { super.drawRect(dirtyRect)...

iOS storyboards - UINavigationBar not appearing when I add it

ios,storyboard,uinavigationbar
I added a UINavigationBar to a detail controller scene, but when I run my app the UINavigationBar does not appear. Why is it doing this ? I have the custom class set to the controller I want it too, but its not appearing, here is a screenshot. but when I...

I want to change the height of UINavigationBar and add a title..Why is this so difficult?

ios,swift,storyboard,xcode6,uinavigationbar
I want to change the height of my UINavigationBar and add a title using XCode6...This navigation bar is a separate object I placed inside of a view controller on the storyboard. Why cant I change the title or stretch it from the editor? It would be so awesome if i...

How to have my ViewController use a different storyboard? xCode 6.3

xcode,storyboard,viewcontroller
I duplicated a storyboard, and changed colors is all. What do I need to do to link my ViewController to use this other storyboard? thank you.

Constraints layout to UITextFields in a cell

storyboard,nslayoutconstraint
Trying to find options to add constraints to a UITextField that are in a table cell row. I'm trying to keep both of them 50% of the width and/either (pinned to the left right edges). Not sure what constraints to add to achieve it in the Interface builder. Please advise....

Confused about storyboards and pushing progrmatically ios Objectve C

ios,objective-c,storyboard
I am really confused about the relationship between storyboards and pushing to views progrmatically. I am using SWRevealViewController to display a menu of items. If I push to the storyboard using UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; PhotosViewController *controller = [storyboard instantiateViewControllerWithIdentifier:@"PhotosViewController"]; [self presentModalViewController:controller animated:YES]; [self.navigationController pushViewController:controller animated:YES]; All of...

Swift nonUniversal storyboard (Without Auto-Layout)

ios,xcode,swift,storyboard
Hey there i want to make my app look different on other iPhones so i want to make storyboards for every iDevices is it possible ?? (Without Auto-Layout) Thanks...

Open New Window in Swift

osx,swift,cocoa,storyboard,nswindow
I am trying to open a new window in my Swift application but I cannot get it to open. class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(aNotification: NSNotification) { openMyWindow() } func openMyWindow() { if let storyboard = NSStoryboard(name: "Main",bundle: nil) { if let vc = storyboard.instantiateControllerWithIdentifier("MyList") as? MyListViewController { var...

IBDesignable from External Framework?

ios,swift,storyboard,ios-frameworks,ibdesignable
I'd like to create some custom views that use the @IBDesignable and @IBInspectable tags. I have added these to my Framework and then linked my Framework to my test application. But the Designables never show up in the StoryBoard. How can I use @IBDesignable and @IBInspectable to create custom views...

Apple Watch App Only Showing Clock

xcode,storyboard,apple-watch
Xcode states that the Apple Watch is running but yet I only see the clock. My storyboard interface should have a green background. There is nothing showing up in the slog. - (void)awakeWithContext:(id)context { [super awakeWithContext:context]; NSLog(@"hello world"); } ...

Swift: Change position of elements on storyboard through code

xcode,swift,storyboard,uikit
Probably a very trivial Swift question. I've got a view on my storyboard with various UIelements (labels, images etc). What I want to do is change the position of some of these elements through code (so not using the storyboard or autolayout features). When I create my elements dynamically I...

How to design an iOS app which runs only in landscape mode in ipad and portrait in iPhone?

objective-c,iphone,ipad,storyboard,orientation
I am new to iOS development.I am making an app which runs on iPad and iPhone.I am using universal storyboard.I want the phone to work only in portrait mode and iPad to work only in landscape mode.How to do the design for ipad in landscape?Can we rotate the storyboard and...

Can't see elements from storyboard inside viewcontrollers

ios,storyboard,viewcontroller
some elements from my storyboard don't appear since I change the viewcontroller size to 4.7inch. But if I create another viewcontroller and I put some object inside, they are appearing. What's wrong with these viewcontrollers? ...

UIView respect uinavigationbar size storyboard

ios,objective-c,uiview,storyboard,autolayout
I have this UIView, wich is supposed to be fullscreen, but in my uiviewcontroller, i have an uinavigation bar. If i put the UIView inside it, with the same size as the uiviewcontroller view, it ignores the 64px of the navigationbar, making it bigger than the screen. Theres any way...

Segue must be modal with page navigation

storyboard,segue,watchkit,uistoryboardsegue,apple-watch
I'm developing an app for Apple Watch that there is a scene with a table. When I select a row it pushes another scene perfectly. However when I added another scene and created the relationship of next scene with the first one the rows stopped working.I had to change the...

Storyboard - Elements isn't exist in all screen sizes (XCode 6)

ios,xcode,storyboard
I am newbie. I design UI at screen that w = Compact and h = Regular. This is appearance of the views : But if I change screen size. The UI elements is vanish. For example, I change to w = Any. h = Regular How to solve this problem...

Abnormal height of UIView in autolayout

ios,objective-c,iphone,storyboard,autolayout
I have added a UIView with height of 2px in a VC in storyboard. Without auto layout it appears exactly as storyboard in simulator. But if i use autolayout then this sub view appears with abnormal height like 50px-60px height. Why ? Simulator Image Storyboard Image...

Swift Storyboard Segue Loads Blank View When Called From Closure

osx,swift,storyboard,closures,segue
If I call the segue from the View Controller's viewWillAppear(), the second view loads as expected performSegueWithIdentifier("CompleteSegue", sender: self) But if I perform an async download, and call the segue from inside the success closure, it calls the Segue, runs all the code, and displays the view, but it's completely...

xcode 6 swift cant add existing objects to different device storyboard

ios,xcode,swift,storyboard
I mistakenly added several items to the ipad storyboard of my app. It is causing a huge problem now that I want the same items on the iphone version of the storyboard. The buttons/labels appear in the view controller scene section of the document outline, but they are translucent and...

iOS iPhone 6 Autolayout - Full Width and Height

ios,objective-c,storyboard,autolayout
I designed my app to work on iPhone 5 and now want to make it compatible with iPhone 6 screens. When I change the simulated metrics size to iphone 5.5 inch in the storyboard, I see that my view is no longer the full width and height of the screen....

Should I put UIIMageViews directly in the View of the Controller?

xcode,swift,uiimageview,storyboard
I am writing an app for both IPad and IPhone. I want to put multiple images in the view. I wanted to ask what is a better practice. Should I put multiple views inside the main view and put autolayout constraints on the views and then put UIImageViews taking whole...

Storyboard ViewController UI Glitch

objective-c,uiviewcontroller,uinavigationcontroller,storyboard,autolayout
I've got an app that I used Storyboard and autolayout to lay out. I used a UINavigationViewController to programmatically transition between UIViewControllers on button pushes. I used XCode 6 with a minimum iOS version number of 7.1 (tested on iPhone 4s). I wanted to write a universal interface that would...

Creating Storyboard with DoubleAnimationUsingKeyFrames in Code Behind C#

c#,wpf,xaml,animation,storyboard
This is my XAML that works perfectly : <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:local="clr-namespace:WpfApplication1" x:Class="WpfApplication1.MainWindow" x:Name="Window" xmlns:converter="clr-namespace:WpfApplication1.Image" Title="MainWindow" Height="350" Width="525"...

WPF routedevent storyboard begin only if height is zero

wpf,storyboard,wpf-controls,routed-events
I have the following XAML for a border trigger that uses a routed event <Border.Triggers> <EventTrigger RoutedEvent="MouseLeftButtonUp" EnterActions=""> <BeginStoryboard> <Storyboard> <ObjectAnimationUsingKeyFrames BeginTime="0" Duration="0:0:0.4" Storyboard.Target="{Binding ElementName=messageWriterDefinition}" Storyboard.TargetProperty="Height"> <DiscreteObjectKeyFrame > <DiscreteObjectKeyFrame.Value> <GridLength>20</GridLength> </DiscreteObjectKeyFrame.Value>...

Call Swift ViewController from Obj C didSelectionRow

objective-c,swift,uiviewcontroller,storyboard
I have an Obj C project that I have added a Swift viewController to. I'm trying to attach a storyboard to the viewController. I can programmatically add things to the view but I can not get the storyboard to show up. I have also tried to use a xib as...

Storyboard orientation Xcode 6.3

xcode,storyboard,orientation
I need to design an app in landscape mode. I selected the ViewController and went to the attribute inspector and selected the orientation to Landscape but the controller view in storyboard doesn't become in the landscape mode. Please suggest what I am doing wrong. I am using Xcode 6.3 Thanks...

Recreate UITableViewCell from storyboard for each row without dequeuing

uitableview,swift,ios8,storyboard
Here's an interesting problem I'm trying to solve. I want to use a single cell that is configured in storyboard for different cell configurations by removing stuff I don't need from the cell. Here's how to cell is constrained. Basically, if I don't need image for the step (or the...

iOS Simulator swift app hitting breakpoint in swift_dynamicCastObjCClassUnconditional

ios,xcode,storyboard,ios-simulator,lldb
Every time I run my switf app in the iOS Simulator, it crashes immediately with this: libswiftCore.dylib`swift_dynamicCastObjCClassUnconditional: 0x1082c1620: pushq %rbp 0x1082c1621: movq %rsp, %rbp 0x1082c1624: pushq %rbx 0x1082c1625: pushq %rax 0x1082c1626: movq %rsi, %rcx 0x1082c1629: movq %rdi, %rbx 0x1082c162c: xorl %eax, %eax 0x1082c162e: testq %rbx, %rbx 0x1082c1631: je 0x1082c164c ;...

iPhone Simulator vs. Main Storyboard Preview

ios,iphone,xcode,storyboard
I have many layout constraints for a particular app, and in the main.storyboard (preview) the apps look a little bit off, but when I run them in the simulator they look how I want them. So there is disconnect between the two. I saw the question answered that fixing the...

Moving project from XIB/NIB to Storyboards

ios,objective-c,storyboard,xib
I have a project that I originally started working on in Xcode 4. I then moved this project to Xcode 6. The project compiles and runs swimmingly. I then wanted to move this to use Storyboards. Reading here and elsewhere I see people say they accomplished this by doing the...

How to start from storyboard and modal to MainWindow.xib?

ios,objective-c,iphone,storyboard,xib
I have two projects, one starts from a storyboard and another is from MainWindow.xib. I want to combine them together, start from storyboard and click a button to launch the view of MainWindow.xib. What do I have to set? How should I modify the code? Please help, thanks a lot!!...

Exit From A Scene Of Storyboard

ios,objective-c,storyboard,scene
I am Using Xcode 6.3.2 and I Have A Question. i Want to Release a scene Of Storyboard When I Go To Another Scene. How Can i Do It? Releasing a Scene Of Storyboard That When i go To It Again,It Start similar To First Time. ARC On My Project...

Storyboard connected properties not work

ios,objective-c,xcode,storyboard
Im really confused because my problem may sound silly, i try to explain it clear - when i add anything on storyboard view controller it has no effect. And obvious, my viewController set properly to a controller, that manage storyboard scene. I adding anything - buttons, imageViews, it doesn't appear...

Edited UITableViewController in storyboard and after defining the VC class

uitableview,swift,xcode6,storyboard,tableview
I am using swift and XCode 6.3.1. I edited a table view controller in storyboard with static cells. Wanting to program a label and a outlet, I created a new UITableViewController Cocoa Touch File and defined the view controllers class the Cocoa Touch File that I just made. However once...

Two scenes sharing a different scene wont segue

swift,ios8,storyboard,interface-builder,scene
So I have two different scenes in my storyboard and they both have a tableview cell that segues to a date picker scene. The first scene I built a segue from to the date picker scene works and also has an unwind segue. The second scene's segue wont fire when...

iAd banner appears even if there is no ADBannerView on storyboard?

ios,objective-c,iphone,storyboard,iad
Here is my sample project that displays an iAd banner at the bottom of the view. viewcontrollerOne.h #import <UIKit/UIKit.h> #import <iAd/iAd.h> @interface viewcontrollerOne : UIViewController <ADBannerViewDelegate> @end viewcontrollerOne.m #import "viewcontrollerOne.h" @implementation viewcontrollerOne - (void)viewDidLoad { [super viewDidLoad]; self.canDisplayBannerAds = YES; } #pragma mark iAd Delegate Methods -(void) bannerViewDidLoadAd:(ADBannerView *)banner {...

How to connect an IBOutlet to the storyboard from a class category

ios,objective-c,storyboard,objective-c-category
I have a CarViewController class which has several class category files. CarViewController.m imports CarViewController+protected.h. I want to have some IBOutlet properties inside car+protected.h so that I can use these in both my CarViewController.m and other class category implementation files. I opened up the assistant editor and was not able to...

Why performSegueWithIdentifier creates always a new instance?

ios,storyboard,segue
I have 3 view controller: containerViewController, questionViewController, answerViewController. How can I swap question and answer, without to create a new instance from the view controllers? So if one is created, use that one. Usually I swap between them like this: containerViewController!.performSegueWithIdentifier("question", sender:self) but this always creates a new instance....

CGContextClearRect ignores alpha value set in storyboard

ios,storyboard
I'm using CGContextClearRect method in MyView's drawRect to clear MyView to background color. However, I must explicitly set the background color alpha value of MyView in code. If I set the alpha value in storyboard, the CGContextClearRect makes MyView black. So why the alpha value set in storyboard doesn't do...

Resize views relative to each other Xcode 6

ios,xcode,storyboard,autolayout,interface-builder
I am building a new app using Xcode 6 and auto layout. I have only just started using auto layout and this maybe a really simple issue to fix but i have been going around in circles trying to find the right way. I have a view played out as...

Create Outlet and Action without Storyboard for UISlider in Objective C

objective-c,iphone,storyboard,uislider
I have an UISlider created in my main file as a property, and I would like to perform some actions when his valueDidChange. My UISlider isn't in the Xib File, how can I create the valueDidChange action without CTRL + Drag ?...

How to remove an object from the Storyboard?

ios,storyboard
The UICollectionViewFlowLayout object always come with a UICollectionView When placing a UICollectionViewController or a UICollectionView inside my Storyboard I can see that a UICollectionViewFlowLayout object always comes with them. I have no use for it. How do I delete it? However, I have no use for it because I'm dealing...

PointAnimation targeting custom UserControl property

c#,wpf,animation,storyboard
I am attempting to animate the position of a UserControl I have created. My problem is very similar to this question asked on MSDN, without an answer sadly. https://social.msdn.microsoft.com/Forums/vstudio/en-US/11ce8aaa-1059-4fe5-8f4d-0fa7978e6ff2/using-pointanimation-to-move-a-control?forum=wpf To summarize, I have a created a Point type dependency property named 'Position' which I use to specify the UserControl's place...

Xcode storyboard versus @3x

xcode,storyboard,retina-display
Using storyboard on Xcode 6. I have 3 images [email protected], [email protected], bkg_menu_iphone.png Xcode automatically detect the regular and @2x(merge it together in the Media view, etc), but the @3x stay alone. Any idea why Xcode still not manage the @3x? My first idea was to have ONLY the @3x and...

I am unable to add identifiers to segues. Is there a way to repair a ios xamarin storyboard?

ios,xamarin,monotouch,storyboard,segue
I have been working with Xamarin since August and it has worked fine until recently. Our storyboards do not allow us to name newly created segues. I am only able to see some of the previously named segues in properties window. However if i open the storyboard using xcode it...

Responsive design Xcode 6 - How to set constraints to make your design responsive?

ios,storyboard,autolayout
Let's consider the following example: These are 3 stripes, each 450 width and 150 height. I would like to make it responsive which basically means that I want them to resize dependently on screen size. I tried three different sets of constraints, I list them below: 1) a) set leading...

Error in main.storyboard

xcode,storyboard
Main.storyboard: warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:. I'm getting this error all the time, and don't know how to fix it, it happens all the time when I try to create second...

How I can create an UIPageViewController where are all screens different and has own ViewControllers?

ios,swift,storyboard
I want to use the cool swipe animation between screens - UIPageViewController (yes, you know the style from the intro screen), but all the code I found on the Internet and Github was useless for me. I found demos with just one UIViewController in the Storyboard interface and almost all...

Can't set custom class for cell in table view controller

ios,uitableview,swift,storyboard,interface-builder
I'm really going crazy: I can't simply set my custom class for a UITableViewCell and I really don't know why. My project In my Storyboard I have a table view controller set to use ManageListsTVC.swift. I want use a custom cell with dynamic prototypes so I create a custom class...

IOS8 Autolayout with relative width / height

ios8,storyboard,autolayout,constraints,orientation
I need to autolayout a storyboard UIView with a single UIControl. The UIControl should be centered, needs to have a aspect ratio of 1:1 and should always use 90% of the superviews width or height depending on the device orientation without clipping. I added 4 constraints Center Y Alignment -...

How do I use storyboards with spriteKit using swift

swift,storyboard,sprite-kit
One of my main reason for using Xcode instead of other applications for making iOS apps was the storyboard interface builder. I was unhappy when I found out that you are not meant to use storyboards with spriteKit. I find it hard to design a nice interface for a game's...

Styling TextBox in WPF generates Storyboard errors

c#,wpf,storyboard
I have found a nice style for WPF applications and I´m trying to make it work with ValidationErrors. Here the full textbox style: <Style x:Key="TextBoxStyle" TargetType="TextBox"> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Foreground" Value="{StaticResource ForegroundBrush}" /> <Setter Property="FontSize" Value="13.333" /> <Setter Property="FontFamily" Value="Segoe UI" /> <Setter Property="Background" Value="{StaticResource TextBoxBackgroundBrush}" /> <Setter...

Replace-root-view-controller custom segue with animation?

ios,objective-c,storyboard,segue,uistoryboardsegue
I've got a custom UIStoryboardSegue subclass which just replaces the root view controller with the destination VC. Works exactly as I want it to... however, I'd like to be able to add a transition animation, and I can't find any good examples of how to do that in the context...

Grey color background on pushing transparent background UIViewController inside a Container View (Storyboard)

ios,objective-c,storyboard
I'm pushing a UIViewController (A) with clearColor as background in a UINavigationController (N). N is placed inside a Container View. This view has a background that I want to show always. Then, when Push is animated it shows a grey/transparent background in my VC (A) and when it finishes its...

Stop Game App if Home Button clicked iOS [closed]

ios,storyboard,home-button
I don't know if by Apple's rules it's necessary to implement that when a user is in the middle of a game, if they click on home button the game pauses and when they click back in game, the game unpauses. Do I have to click something on storyboard for...

Present storyboard view controller from third party library

ios,objective-c,xcode,storyboard,cocoapods
I have installed a third party library using cocoapods and am trying to present the storyboard contained within the library in my projects viewDidLoad. My code below i believe should be working UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"library.storyboard" bundle:nil]; WrapperViewController *myVC = (WrapperViewController*) [storyboard instantiateViewControllerWithIdentifier:@"libraryStoryboard"]; [self presentViewController:myVC animated:YES completion:nil]; But I...

Which takes higher priority? Code or Storyboard? iOS Swift

ios,storyboard,priority
I've been messing with my UINavigationBar color in my iOS App written in Swift. When doing this, I know there are two ways to set the color - Either in Storyboard or in my Appdelegate code. Which of the two takes higher priority? This applies to more than just UINavigationBars...

How can i get the imageView's size from storyboard?

ios,storyboard
I add a imageView in storyboard, and add a few constraints(Trailing,Leading, Bottom, Top, Ratio).Now i want to get imageView size in code. NSlog("%f", cell.imageView.frame.size.width); But, when i run it in iPhone5, the result is the same as that run in iphone6. what should i do , thank you very much(Xcode6,...

How to do a “show (e.g Push)” segue programatically without animation?

ios,objective-c,swift,storyboard,segue
How can I do a "show (e.g Push)" segue programatically without animation? None of the solutions I've found works the same way as the one in storyboard.

Is it possible to use unwind segues in WatchKit?

storyboard,segue,watchkit
I'm looking to have a WKInterfaceController unwind to the previous after a button is pressed. This technical note from Apple is not updated for WatchKit.

iOS: Creating buttons using IB vs. creating buttons programmatically

ios,objective-c,storyboard
I'm a web and android developer, and now i'm learning iOS development, i noticed that if you want to build any view (let's say a button) you have to create it using Interface Builder, or you can make it happen programmatically by doing for instance : UIButton *but= [UIButton buttonWithType:UIButtonTypeRoundedRect];...

How can I programmatically change the border of a rectangle in WPF (storyboard animation)?

c#,wpf,storyboard
In order to change a color of a rectangle in code behind I can use: InitializeComponent(); StackPanel myStackPanel = new StackPanel(); myStackPanel.Margin = new Thickness(20); Rectangle myRectangle = new Rectangle(); myRectangle.Name = "MyRectangle"; // Create a name scope for the page. NameScope.SetNameScope(this, new NameScope()); this.RegisterName(myRectangle.Name, myRectangle); myRectangle.Width = 100; myRectangle.Height...

View with constraints changes when run on simulator

ios,storyboard,nslayoutconstraint
I have a UISegmentedControl, in a static UITableViewCell. I'm added constraints on all 4 sides. I want the segmentedControl to have squared corners. I set it up in the storyboard to look like that, and it looks fine. But when I run it on the simulator, you can see the...

Can we get an array of all storyboard views

ios,swift,uiviewcontroller,storyboard
I'm developping application in Swift. This application has many view and I would like to put a UIProgressView on all views Can we get an array of all storyboard views ? for exemple : self.progressBar = UIProgressView(progressViewStyle: .Bar) self.progressBar?.center = view.center self.progressBar?.frame = CGRect(x: 0, y: 20, width: view.frame.width, height:...

Cannot include outlets in file

objective-c,storyboard,outlet
I created a storyboard with a navigation controller inside. The View inside the nav controller contains a MKMapView. Now I want to create an Outlet in my viewController.m file. But when I try to connect from storyboard to the viewcontroller.m file using the assistant editor, nothing happens, and I am...

WatchKit Interface controller scrolls too much after adding next page segue

objective-c,storyboard,interface-builder,watchkit,apple-watch
experts! Today started to build Apple Watch version for my CelebrateMore! app and can't solve one issue. I have 2 interface controllers - Page-based kind. As soon as I set segue to "next page" from first to second, my first interface controller starts to scroll much more than before. Screenshot...

Storyboard issue with Xcode 6 and 7

xcode,swift,storyboard
Why my Main Storyboard appears like shown at Above? I made a copy of the project but now both of them have the same problem with the storyboard! I can run the app using the simulator and it works fine, but I can't see any labels or the buttons!...

Enumerate and apply WPF styles programmatically

c#,wpf,xaml,storyboard,styling
I have a WPF button as such <Button Name="HelloWorldButton" Width="100" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource TileButton}"> Hello world </Button> Using WPF styling I have applied a style template as shown below <Style x:Key="TileButton" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border x:Name="focusRect" Margin="-6" BorderThickness="6"> <ContentPresenter />...

What holds strong reference onto my viewController?

ios,uiviewcontroller,storyboard,strong-references
I am removing viewController from controller hierarchy with removeFromParentViewController, but deinit of view controller not get called. How can I check what holds strong reference on it? Any way to see reference graph exist in memory? This is how my swap` method looks like: public class func swap(fromViewController: UIViewController!, toViewController:...

Storyboard animation not able to change TargetNameProperty

c#,xaml,windows-phone-8,storyboard
i am developing an app for Windows Phone 8.0 in VS2012 with C# There are 16 pictures , and i want to do a Fade Animation - Decreasing Size and Opacity properties for every picture when the user Taps on it but a Storyboard targets only 1 picture at a...

Recover by breaking constraint in Swift

ios,swift,storyboard,autolayout
Recently I discovered that when I run my app on iOS 7 devices the compiler returns an error. This doesn't happen with devices running iOS 8. I can somehow understand that it's a NSLayoutConstraints problem. I don't know what is making it happen. I need to fix it without disabling...

Have different content in storyboard between target

ios,objective-c,iphone,xcode,storyboard
I'm adding new project target for making new app on my Xcode project which is used storyboard. It will have exactly same function, only differences are things related on name e.g bundle name, app icon etc. I just did add a new target from project setting and did some configurations...

Xcode: Issue adding localization to my project (Resource file / Reference language not found)

ios,xcode,xcode6,storyboard
I'm trying to add a Spanish version for my app. I'm following several tutorials and they all get me to this point: Screenshot from http://www.raywenderlich.com/64401/internationalization-tutorial-for-ios-2014 But when I try doing the same thing step by step in my existing project, I don't see any files to choose from: What do...

Which UILabel method is invoked when I set text, and it resizes itself to fit?

ios,storyboard,uilabel,nslayoutconstraint
I have an UILabel, created in Universal storyboard, and I have mentioned all required constraints for its position OTHER THAN WIDTH. So it resizes itself as per the text set. Fantastic! Exactly what I want. Problem starts here : It has background color as green color, but that color is...

Getting a UIVIewController from a storyboard by overriding it's designated initializer

ios,swift,uiviewcontroller,storyboard
In Objective-C, I often override my UIViewController subclass's init like this - (id)init { self = [[UIStoryboard storyboardWithName:@"..." bundle:nil] instantiateViewControllerWithIdentifier:@"..."]; return self; } So that when I need to use it, I can simply call id controller = [MyViewController new] Is it possible to do similar thing in Swift, so...

My app crash, reason 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath

ios,objective-c,uitableview,storyboard
I am using 2 tableview. I am using these two tables using tag. In Parent TableView there are 3 cell. and another table is added in the 3rd cell of Parent table. I double check whole code but I can't find error. However I getting this error and I am...

Size Class Initially Unknown

ios,objective-c,storyboard,size-classes
I am trying to setup my UI on my universal app. I have a storyboard setup with size classes, a fairly simple UI. I have my view controller with a view in. Inside this view, I draw a chart so this can only be updated using setFrame. This is where...

Different storyboard's entry points depending on a parameter

ios,login,uiviewcontroller,storyboard,entry-point
I'm developing an app where I need to manage the common scenario of users having to provide credentials to log in and access the main app's functions. This way, the view I need to firstly show the user if she's not logged in is the view to allow her to...

Add Storyboard UITableView and custom UITableViewCells to UIScrollView programmatically

uitableview,uiscrollview,storyboard
In my Storboard, I have a UIViewController (ParentClass) -> UIScrollView (linked to Parent) -> UITableView (linked to Parent) -> UITableViewCell (2 cells, each with their own Class). What I'm trying to do is add several instances of the UITableView (with the custom cells) into the UIScrollView. I am close with...

Sibling object not available in menu when setting Auto Layout constraint in Storyboard

ios,xcode,storyboard,autolayout,interface-builder
The Apple guide "Adding Auto Layout Constraints with the Pin and Align Tools" states: To create a constraint related to another item that is not the nearest neighbor, click the black down arrow in the text field and choose another nearby item from the pop-up menu. https://developer.apple.com/library/ios/recipes/xcode_help-IB_auto_layout/chapters/pin-constraints.html My Storyboard has...

Import swift class into objective c storyboard

ios,objective-c,swift,storyboard,interface-builder
Im trying to integrate implement the project https://github.com/ariok/BWWalkthrough into my objective c project. I have an objc bridging header that Xcode automatically made for me I translated the ViewController.swift code as such UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Walkthrough" bundle:nil]; BWWalkthroughViewController *walkthrough = [sb instantiateViewControllerWithIdentifier:@"walk"]; BWWalkthroughPageViewController *page_zero = [sb instantiateViewControllerWithIdentifier:@"walk0"]; BWWalkthroughPageViewController...

Make 2 toolbar/footer buttons with 50% width with Swift/Storyboard

ios,swift,storyboard
I'm trying to display a title bar, image, and then two buttons almost like below. The main differences are that I want to two item buttons to be 50% width and each a solid color (taking up the entire bottom of the screen). I'm not using a tab bar because...

iOS adding design-time text on storyboard

ios,objective-c,iphone,swift,storyboard
Is it possible to set a design-time text for UILabel (or image if using UIImageView) on iOS 8? if so, how to? Basically what I need is not to empty all of my labels before compiling so that it doesn't show dummy data before loading from the network the actual...

Xcode changes storyboard xml automatically

ios,xml,xcode,storyboard
I recently upgraded the Xcode to 6.3.2. After editing the storyboard, i noticed some strange changes through git: All the cocoaTouchSystemColor="colour"/> nodes have been changed to red="value" green="value" blue="value" alpha="value" colorSpace="calibratedRGB"/> in the xml file of the storyboard (I have not made those changes for sure). for example: cocoaTouchSystemColor="darkTextColor"/> ||...

XCode 6.3 bug: Unknown class in Interface Builder file

ios,swift,storyboard,xcode6
I am working with XCode 6.3 & Swift. I have just added a few view controllers in my storyboard & added the custom classes & set the respective custom classes in identity inspector. But while I run the app it shows Unknown class X in Interface Builder file. & I...

Redrawing UIViewController and its subviews

ios,xcode,uiview,uiviewcontroller,storyboard
I have a UIViewController with many subviews like UILabels, UIImages and a UIWebview. With a defined action by the user, the subviews of the UIViewController animate to different sizes and different locations inside of the UIViewController's view. Is it possible that this can be undone with a different defined action...

Swift - UIStoryboardSegue pop up ViewController programatically

swift,popup,storyboard,segue
I have UIButton attached to navigationBar programatically: catButton.addTarget(self, action: "oc:", forControlEvents: .TouchUpInside) var catBarButton:UIBarButtonItem = UIBarButtonItem(customView: catButton) self.navigationItem.setRightBarButtonItem(catBarButton, animated: false) when function oc() is triggered I want to popover view controller let segue = UIStoryboardSegue(identifier: "oc", source: self, destination: MDComDBCatsTVC()) prepareForSegue(segue, sender: but) but this doesn't open MDComDBCatsTVC.. How to...

ios 8 swift how to design multiple layer using storyboard

ios,storyboard
I'm trying to do something a bit complicated and I have a big problem. So, I have one screen with 3 "layers" each one with a different size (so they are overlapping each other). Based on the user gestures, I will hide/show them. Each layer I would like to build...

How to add functionality to storyboard for specific devices?

ios,xcode,swift,ipad,storyboard
I am using the Xcode version 6.3.2, which is the most recent one at the moment. I already have an working iPhone application, build with that very same version of Xcode. It contains a page view controller inside a standard view controller. Moreover it provides the user a settings page...

Add Label on Top of Image in Apple Watch Storyboard

ios,objective-c,storyboard,watchkit,apple-watch
So I'm trying to make an apple watch app. I noticed that elements on the storyboard can only be positioned side by side using a group. But the UI I want requires a background image and a label on top of it. How can I ? Is it even possible...

Whitespace at the top of a UIViewController [duplicate]

ios,uiviewcontroller,uinavigationcontroller,storyboard,uitextview
This question already has an answer here: Blank space at top of UITextView in iOS 7 9 answers I have a UIViewController embedded in a UINavigationController. The UIViewController contains a UITextView (which takes up the entire screen except for the nav bar and menu area. For some reason there...