5

I'm trying to integrate notification ads from Leadbolt in my iPhone app.I downloaded the Leadbolt iPhone SDK and followed the instructions given in their pdf.

As i am trying to load notification ads, i added the following code in the app delegate class..

static LeadboltOverlay *myAdController;
myAdController = [[LeadboltOverlay alloc] init]; 
[myAdController setSectionId:@”YOUR_SECTION_ID”]; 
[myAdController loadNotification];

I get the following error in the 3rd line(setSectionId method).

 Instance method setSectionId not found

Checked out their header file and found that it has been declared as a static method.But in their documentation they are calling it as an instance method.

I'm confused and dont have a clue as to how to proceed now.

I mailed their support team but they havent given me any proper solutions.
I'm sure some of u might have faced the same problem while integrating the Leadbolt SDK.Kindly provide solution for this issue..

Help is greatly appreciated :)

Jarrod Dixon
  • 15,727
  • 9
  • 60
  • 72
Mr.Anonymous
  • 820
  • 2
  • 13
  • 22

1 Answers1

0

As you are saying that setSectionId has been declared as static method then you can not access it with an instance for sure.

you can access it only by its class, try

[LeadboltOverlay setSectionId:@"YOUR ID"]; instead of your

[myAdController setSectionId:@”YOUR_SECTION_ID”];

It should work. `

Ankush
  • 2,405
  • 3
  • 22
  • 45