Is there a way to add a description to my methods in Xcode iOS project so I can see quick details when clicking on a desired method with OPTION + click like it can be done on Apple's API's methods (case bellow)?
Thanks!
If I understand right than all of this tools are for generating documentation and not for adding method's description. Am I right?
Related
I'm using xcode 13 and UIKit.
According to the tutorial I'm doing, there should be a size classes tool, in my "view as" bar, but I can't see it. Has this changed?
How I'm I supposed to set up constraints for a specific size class?
Ah, found the solution here: https://useyourloaf.com/blog/xcode-13-vary-for-traits/
You use the "installed" feature on the constraints
I'm trying to add this feature to my app: when pushing a certain button, open a quick look view of a certain file.
I saw this:
Use Quick Look inside a Swift cocoa application to preview audio files,
but the error written in the comments shows up and the app crashes after trying to go back and forth between files.
Apple's class reference of QLPreviewPanel is quite empty.
Which is a correct implementation? What is wrong in the answer in the question I linked?
Apple's class reference of QLPreviewPanel is quite empty.
They have a lot of bugs currently. You can "View page source" in your browser, or use Xcode built-in help, it's pretty good.
Which is a correct implementation?
It looks like someone has already done it with Swift. I'm not sure if that's the full implementation.
What is wrong in the answer in the question I linked?
QLError() [...] called while the panel has no controller is decrypted this way: some class in the responder chain (your NSView or NSWindow should be there already, unless you have a very complex structure) must respond to acceptsPreviewPanelControl: and two other QLPreviewPanelController methods.
I'm trying to make my own twitter table view from scratch following the demo. However it is very strange that after I imported the Twitter package to the project, I can see that for example Tweet class gets syntx highlight, but content assist does not work for, for example, TwitterRequest class.
For example, when I type in the viewDidLoad() function:
let request = TwitterRequest(s
it only show me "self"
and later when I type
request.
it doesn't show anything. Control+space shows "no completion".
Does anyone know what is wrong with my xCode?
I found the solution... myself.
From Xcode, Under menu Window, go to
Xcode Organizer -> Projects -> (Your Project) -> Delete Derived Data
Unlike others are saying on StackOverflow that you don't need to restart Xcode if you do like this, I have to restart Xcode to make it work.
Sorry for such a basic question.
After using MS Visual Studio for 15 years, I recently moved to Apple and its Xcode. So I am really newbie in this new tool. I can work with some very basic parts of utilities as Referencing outlets or such stuff, but there are a lot of other stuff there that I had never seen in Visual Studio (as file owner, accessibility reference, ...)
I am looking for a good tutorial on that. Any one knows any? Any suggestions will be appreciated.
Apple has very helpful documentation about their technologies: OSX and iOS
The best place to start using Xcode is Xcode 4 User Guide and Xcode Quick Start Guide
This is something like Properties menu in VS. the only difference is that you can simply change to Assistant editor and hold control+drag from each one directly to your code.
Remember this is based on MVC ( Model= data, View= what you see and Controller)
In fact view and model are almost separated and controller is the connector between them:
this may help in the picture above: everything is counted based on Controller: OUT-let can remind you OUT of controller: I mean commands from controller to something. and sender means what sends messages TO the controller. These will make codes just like delegate coding in Visual Studio when you drag and drop an object to the window and double click on them. The (id)sender is counterpart of (void)sender in VS.
watch the Stanford iOS class on iTunesU. It is very good and if you know programming it will be very fast. Make sure you watch the fall 2011 version, it is about iOS5 and xcode4.
I'm working with Objective-C and Xcode for about a year. I customise a lot of generic objects. Few days ago one of my friend asked me a question, but I couldn't answer him. So I try to do something my self. For example:
I created this Custom View:
How can I add this View to the Object Library?. Here:
I don't really know why do I need this. But I decide to figure out how to do this. I hope you could help me with this.
Thanks in advance!
I don't think this will work. You are putting buttons on "top" of a custom view placeholder. The custom view placeholder is used to be able to use - yeah you guessed right - custom user defined views.
So of which class would your view-with-5-buttons-on-top be? I think you are running into a dead end, because that's just not the way to do it in Xcode. If you want to design your custom view graphically, just create a NIB file for it.
I don't think that you can add your own view objects into the object library. Everything I know of are user-defined code snippets which will show up on the right.
Edit
There were things called IB plugins in Interface Builder and Xcode versions prior to 4.
Those were discontinued in Xcode 4 as can be read here for example :
http://xcodebook.com/2011/03/no-interface-builder-plugin-support-in-xcode-4/
Further searches for IB plugin gives a lot more guys telling the same.
Best,
Flo