I can't create an outlet in XCode [closed] - ios

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am new to Xcode and I try to create an outlet of an MKMapView, I tried to control-drag the path from the map to the ViewController.swift, but it didn't work. Whats the reason for that and do I have to manually add them every time?

Go into your storyboard file and select the view controller with the above mentioned MKMapView. Click the identity inspector and in "Custom Class" make "Class" equal to "ViewController".

Related

statically placed single row tableview [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have statically placed a single row within UIViewController inside a storyboard. I've specified 1 prototype cell within and set its value programmatically.
But at runtime I see an extra row within the tableview, is there something I can tweak within the Attribute inspector?
My attribute inspector looks like this.
Please try this-
yourTblView.tableFooterView = UIView()

Moving between storyboards on XCode [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have another question about iOS programming. I read through this and this, but for some odd reason I cannot figure out how to ctrl+drag the button to activate the switch between them.
This is the way I've set them up, with one storyboard called Main.storyboard and the second one Information.storyboard. A link to the two pictures of the reference and the referenced storyboard
Basically I try to control drag from the button to the reference, but it doesn't connect...
Can anyone hint at what I might be doing wrong?
Kind regards!
Storyboard reference object library.
You can drag and drop it in One storyboard and set a segue to a button or Other object via storyboard.
Select storyboard reference object and select attribute inspector and type another storyboard name which you want to show in next scene. make sure Set its initial view controller.

Indicate if view dissapearing [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to determine if view is dissapearing without additional BOOL field and setting it's value to YES/NO in -viewWillDissapear -viewDidDissapear?
I am trying to determine if view is not dissapearing casued by "back" button (pop to previous controller). Right now I have isNavigationInProgress property that do this for me.
Not sure I understand your question correctly.
However it looks like you are talking about isMovingFromParentViewController, isMovingToParentViewController, isBeingPresented, isBeingPresented and isBeingDismissed properties
These properties allows you to get the cause of -viewWillDissapear and -viewDidDissapear calls.
See more info on Apple site, UIViewController reference

Apply class to object iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am creating a custom table view controller because I want to access a search bar on the table view controller.
How can I apply the new class to my existing tableviewcontroller in my story board?
Edit:
Question was answered, for those unclear as to what I was asking, I had an object in interface builder which was using the standard class for that object, and was wondering how to apply a custom class which I made, thanks!
Select your tableViewController in the Storyboard, and enter your custom class name in the Class field of the Identity Inspector on the right-hand side:

Creating my custom UISwitch [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i am looking for a solution to customize a UISwitch
the desigred looks lie this :
how would you managed it?
Here is a tutorial which can help you to create custom UISwitch. It mention to ways to create custom UISwitch. Concept is to subclass UISwitch class and add custom things in it.
You can use a UIbutton and toggle its image for On/Off.
Or else if you want to make animation to toggle On/Off you should use your custom view. Please see this answer

Resources