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 ?
Related
I have updated the xcode 8.3 version and started getting the warnings shown in the image. It is asking me to change the code by providing the default values in the string. But the problem is that there are so many places in which this warning is. So if any one know the proper solution for solving it without any changes in code. Please let me know. Any help will be appreciated.
Thanks
Try to use the the Fix All in Scope option in the Editor menu.
Image source: https://stackoverflow.com/a/34571527/1283228
I'm not sure if it can fix all the errors and warnings in the project at once, but you should be able to fix all warnings in a file.
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.
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 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
The code just crashes when an already running particle effect's setVisible property is changed to NO, and later turned to YES. I have been working with ParticleEffects for a while now but never have I faced this error before. I don't know where I am going wrong. Its so frustrating. Please any help would do wonders. Im using cocos2d 2.x, xCode5 and well ofcourse Ive generated my ParticleEffects through ParticleDesigner. Hoping someone will help me out here.Thanks though :)
I ran into this issue also and found that it was a cocos2d bug. The fix was added here https://github.com/cocos2d/cocos2d-x/pull/6032/files and you can copy the changes if you don't want to update. (Seems to have worked well for me anyways.)