viewcontroller - Receiving this error. No visible @interface for 'UIViewController' declares the selector 'presentViewController' -


the problem @ if ([[topviewcontroller presentviewcontroller] line:

(void)sessionstatechanged:(fbsession *)session       state:(fbsessionstate) state                       error:(nserror *)error {     switch (state) {         case fbsessionstateopen: {             uiviewcontroller *topviewcontroller =             self.navcontroller topviewcontroller];              if ([[topviewcontroller presentviewcontroller]                  iskindofclass:[pbloginviewcontroller class]]) {                 [topviewcontroller dismissviewcontrolleranimated:yes completion:nil]; 


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -