Jump to content

SCLAlertView Style troubles/errors


Go to solution Solved by Pro,

28 posts in this topic

Recommended Posts

Posted

already apply from there. but the problem remains the same.

 

the same problems as https://iosgods.com/topic/30440-sclalertview-troubleserrors/

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1586:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1587:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1620:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1621:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1630:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTarget = target;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1631:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1638:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

 

20 errors generated.

Put -w in your cflags

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Yeah

 

tks mr shmo. but I still find the same error. :( . If mr shmoo kindly provide SCLAlertview tutorial style from scratch? Such incredible tweak you. Just SCLAlertview. :)

Posted (edited)

Seeing this, I felt like trying to use it again. I now have 10 errors :p

 

I also several times been viewed 10 error :(. so, what is the solution?

Updated by pxcex
Posted

tks mr shmo. but I still find the same error. :( . If mr shmoo kindly provide SCLAlertview tutorial style from scratch? Such incredible tweak you. Just SCLAlertview. :)

Yeah I'll give you my headers :p -w usually solves type errors for me

Posted

Yeah I'll give you my headers :p -w usually solves type errors for me

 

please provide headers for me..

Posted (edited)

please provide headers for me..

In your Makefile, on the CFLAGS line, add pxcex_ to the beggining of it:

pxcex_CFLAGS = -w -fobjc-arc

Never mind, don't do that. I thought this fixed it for me, but then I fixed another error, only yo get where you are xD

Updated by Pro

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines