Overriding MonkeyID

FoneMonkey for iOS Forum

Hi!

I have a problem with overriding fonemonkey's monkeyID

When I have runed my fonemonkey target it seems that method will never bee called from FoneMonkey.

I have made break point at:  NSString *navbutton = [NSString stringWithFormat:@"%d"self.navButton.tag];

But the application doesn't stopped at point so thats why I think it's never called.

Anyone has an idea what is the problem?

 

The interface what I use is:

 

#import <Foundation/Foundation.h>

#import <UIKit/UIEvent.h>

#import "FoneMonkeyAPI.h"

#import "FooterController.h"

 

@interface FooterController (FoneMonkey) 

- (NSString*) monkeyID;

 

@end

 

 

Category implementation is:

 

 

#import "FooterController+FoneMonkey.h"

 

@implementation FooterController (FoneMonkey)

 

- (NSString*) monkeyID {

NSString *navbutton = [NSString stringWithFormat:@"%d", self.navButton.tag];

    return navbutton;

}

 

@end

 

 

BUG

It seems there is a bug in Fonemonkey.

I have tried to make a category extension to UIView, but - (NSString*) monkeyID method wasn't bee called.

BUG

Yeah, it's a bug.

On iPhone Simulator it works perfectly with 3.1.3 SDK, but on device with same SDK it don't work.

SUM

Another way of these question.

How can I make that all of my controlls (button,view,scroll etc) returns the same type of monkeyID.

Example:

All controlls MonkeyIDs cames from Accessibility Label.

How can I do this?

 

Thanks

Answer

Make a category of ui view that implements monkeyID and returns the accessibly Label

monkey id problem

sorry for the double post

monkey id problem

try adding this

 

- (BOOL) isFMEnabled {

return YES;

}

RE:monkey id problem

And if I added to my class, where and what should I see?

Because I have added it, but fonemonkey have generated the ID again.