iphone - Objective-C extension syntax -


enter image description here

the above answer here.

my question :

the suggested code seems working expected. problem xcode issues warning against statement pointed red arrow. warning :

instance method '-scrollviewdidscroll' not found (return type defaults 'id')

another issue '-scrollviewdidscroll' returns "void" , not 'id' compiler assumes.

wish rid of warning , let compiler know return type "void".

hope ...

self.delegate should declared id<uiscrollviewdelegate> instance.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -