iOS 5 Storyboard comments - ios

Is there a way to add a comment on the iOS storyboards? Currently we have a project in which several people are working on the same interface and it would be very helpful to be able to write in the storyboard itself, so you can leave a note to others or to put stuff to remember later.
Something like a bubble with a message on it like "Mark, please fix the logout button, change it to red". Is there something like this? I can't found it.

Not that I have heard of. My suggestion is to use a View Controller that isn't connected to the other scenes and have a textview in there that you write on.
The other thing you can do in the implementation file is to use a
#warning Mark, please fix the logout button
directive
This would show up as a warning whenever the project is built or run.

Related

Why doesn't Xcode have a Event/Arguments when linking an object with an IBAction

I'm a complete newbie with Objective-C, Xcode, and the design itself. I have had a bit more experience developing iOS on Xcode, and when you wanted to link an action (i.e Slider changing value), you could select from many options unlike OS X.
How can I get around this with the same results, as using a pre-generated (control-drag slider to ViewController.h and .m) only fires an action at the mouseUp action.
EDIT #1: Sorry for making my question quite confusing. I am wondering how to receive actions while dragging.
Here's whats happening in picture form:
Most likely something very easy that I'm not getting at all.
I think you did not set controller from Storyboard. Please verify your controller class is properly set by following the image below
Your question is very confused. Are you trying to ask how to make a slider send its message while dragging, instead of just at the end?
On Mac, controls only have one target/action, there are no multiple actions. Objects have other properties that control when the actions are actually sent, if needed. In case of NSSlider, you probably forgot to set its 'continuous' property.

Customising the Decimal pad in my app

Swift...
So I've got an existing app and I'm working on its appearance. The current task is customising the decimal pad that pops up when the user hits a textField.
I've looked around on how to make it but it always seems that you have to go into the iPhone/ipad settings and add the custom keyboard.
eg. This StackOverFlow Question
and they all seem to point to this same tutorial..
iOS 8: Creating a Custom Keyboard
My problem is that I don't want the user to have to go into settings.
So the question is....IS THIS POSSIBLE?
The following pic is what I want to use. I have made this in an XIB file through adding a target keyboard which makes the new folder with KeyboardViewController.swift , info.plist and NumPad.xib. Though i think I'm on the wrong track, can someone point me the right way please.
Also anyone know the exact dimensions this view should be.. assuming what I'm asking is in fact possible. Let me know if I'm not being clear enough!
NumPad.xib(pic)
Many many thanks,
Steve
SOLUTION: Thanks to Andrea for correcting my search keywords. It led me to this Stack Question which hopefully sends some others to the correct end of the internet that have mistakes custom keyboard with custom input views!
Sure it is possible without going into settings, but they are called custom input views.
You should look into inputViews here what Apple says about them Custom views for data input.
Basically when the user press a text field instead of loading the usual keyboard it loads an inputView that you specify, pay attention that custom keyboard term is misleading. If you google for tutorial you'll find most probably link like the ones that you found.
For a practical example check this tutorial or this, is a little bit old, but the principle are still the same

Is it possible to locate used code in xcode during testing?

This may sound confusing, so I'll do my best to explain it. I am using Xcode and Swift.
I was wondering if it's possible to view which code is being used at specific times, e.g. when I press a button or use an action in a view.
I have some code and can test it in the simulator, but I don't know exactly what part of the ViewController files it is using. I'd like to know which methods/functions are being called when I do specific tasks.
IS there any way to do this without using a hundred print("Random Text") ?
Thanks!

UIPageViewController turn-to-page example

There are a couple of explanations on how UIPageViewControllers work, and I have read them. I have built an app based on the approach in Neil Smyth's excellent 'iPhone iOS 6 Development Essentials" in chapter 28. It is elegant and simple.
It seems a relatively simple thing to add a method to this class, and a button to the main app view, to cause the UIPageViewController to turn to a specific page. But I cannot quite see the beset way to do this.
If someone could point me to the solution -- or tell me how to add a method that would I think use the provided "viewControllerAtIndex:" method cause the page turn i want.
Seeing this done (exactly what code codes where) in that app would help me understand and point the way to a solution in my own app.
thanks everyone sorry i know this should be obvious from the ansers to the likes of this question link but i am not quite getting it.
As noted in my comment I can close this question as I've found a good solution. As I wanted both "skip ahead" and "skip back" as well as "jump to page", I used a solution that involved specifying the top level View Controller as a delegate to content view controller, keeping track of the current page, and then passing the clicks on contentViewController back up to the implementation of the top level controller (as delegate) to move to the new page(s).
I have posted the source code for this solution as part of the "A-B-C Picture Book" source code. This app is in the app store; see https://itunes.apple.com/us/app/a-b-c-picture-book/id578864421?ls=1&mt=8.

iPhone Share Button

How can I recreate this, something found throughout native iPhone apps such as Safari and Photos.
I'm assuming it is pretty simple, I just don't even know what it is called so I'm having trouble finding out how.
It is usually reached using an action (or export or something) button.
The same functionality is called as UIActionsheet. You can get plenty of examples for the same on SO itself.
you are looking for whats called a UIActionSheet
check this out for more info
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html
you have to create action sheet https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets

Resources