I would like to see a Objective-c model in swift. But I have this problem:
I can´t display the content although it´s right.
Any ideas?
Thank you
Apparently I'm not doing anything wrong, it's failure xcode.
Related
Has anyone else come across this, and/or knows of a fix?
I figured it out. "EditaPago" needed to conform to FetchedresultControllerDelegate protocol, at least on the NSFetchedResultsChangeType method.
I'm using a lot of parse method/blocks like the one below.
[self.currentUser.profileImage getDataInBackgroundWithBlock:(nullable PFDataResultBlock(nullable )block]
Xcode used to autocomplete these blocks. Is this something that was broken with the last xcode updates? Is anyone having this problem and how did you fix it?
Thanks for the help!
I'm learning basics of Objective-C and using XCode for writing code.
As you all know autocomplete option is perfect for new users that don't know (or remember) name of functions.
I have a problem with using autocomplete in XCode 6.3 couse its just.. not working - it is not showing anything or showing things that are not connected.
For example I just wrote simple few lines of code gusing NSMutableArray and NSEnumerator, when I'm trying to remind myself function/message 'nextObject' of NSEnumerator, XCode is not suggesting anything.
Here is a pic to show it:
Am I doing sth wrong or there is a way to fix it?
thanks in advance!
It must be a temporary glitch. Happens to me almost all the time while Xcode is "indexing". You might be typing too fast and by the time Xcode gives indexing a break and looks for the auto-completion you might have types something for which there is no method (or something that you expected)
Also, for custom classes & method, make sure you have included the respective header files.
It seems that autocomplete does not work when there is an error in the code.
The reason for autoComplete not working can be anything. Do any one of the following to debug it
Check if there are errors and if so try to solve it and then check autoComplete. If any error is present in any of the line then autoComplete will not work for below code. Try autoComplete above the error incase you want to check.
If debugger does not throw any error then try commenting out the all lines and uncomment it from top to methods to recheck the autoComplete
Quit Xcode and Reopen it
Clear Derived data and then launch Xcode and check
Probably pretty simple but i was just wondering I'm using GTMNSString+HTML.m / .h
Found here
And I'm hitting a ARC snag. I'm unable to put Obj-C objects into struct's in ARC. Could someone help explain to me what the issue is putting an NSString inside a struct, and how I might fix this?
Thanks!
Ok well dumb of me. Pretty easy to get around.
If you have this problem just head over to your Build Phases, and add -fno-objc-arc the line that the GTMNSString+HTML.m is in this should let you build like a champ.
I've just noticed that xcode is no longer prefilling for me. For instance I want to write
CGRectMake (self.frame.size.width, ...);
Xcode is not prefilling the .frame and so on. Not only this but if I write it, it gives me error and tells me
object 'frame' not found on...
I mean, what on earth happened here?. The code I had already written is alright, compiling and no problems.
Any ideas?
Thanks in advance!
maybe it should be self.view.frame ?