FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
05/05/13 10:33 AM (12 years ago)

Scringo Like activity post for specific screen

Hello - I am trying to implement a like button for a specific screen that will post to the Scringo activity feed when the user taps. I tried to declare using the screen nickname. For example I have a newsfeed screen using RSS plugin and pasted the code below in the Rd_simplerss.m file. When I test in the activity feed, the screenNickname is not displayed, instead it states that I liked "YOUR_DESCRIPTION." Any suggestions please let me know....thanks! NSString *ScreenNickname = [screenData itemNickname]; ScringoLikeButton *likeButton = [[ScringoLikeButton alloc] initWithFrame:CGRectMake(40, 300, 50, 27)]; UIBarButtonItem *likeItButton = [[UIBarButtonItem alloc] initWithCustomView:likeButton]; self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:likeItButton, nil]; [likeButton updateLikeObject:ScreenNickname type:SCRINGO_APP_LIKE_OTHER description:@"NewsFeed"];
 
guyfeder
Veteran developer
Profile
Posts: 14
Reg: May 07, 2013
Ramat-Gan
140
like
05/07/13 07:32 AM (12 years ago)
Hi, We (as in Scringo) are not aware of such an issue. I tried your code (except from the strings and the attempt to place it in the Navigation Bar) and it worked just fine, writing in the Activity Feed that I liked "NewsFeed". Here's the piece of code I tested with: NSString *ScreenNickname = @"Other Typed Like Object"; ScringoLikeButton *otherLikeButton = [[ScringoLikeButton alloc] initWithFrame:CGRectMake(230, 20, 50, 27)]; [self.view addSubview:otherLikeButton]; [otherLikeButton updateLikeObject:ScreenNickname type:SCRINGO_APP_LIKE_OTHER description:@"NewsFeed"]; You're welcome to get back to me on this and other issues using my email: [email protected]
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/25/13 04:02 PM (12 years ago)
where do you put that code exactly? plz can you be more specific? Are these lines the same for every plugin?
 
FromtheNE
Aspiring developer
Profile
Posts: 47
Reg: Sep 02, 2012
MA
3,220
like
05/27/13 10:25 AM (12 years ago)
Hello I put this in the .m file in the "view will appear" method, after //setup navigation bar and background. Code is the same for each plugin, but you would change the SCRINGO_APP_LIKE_OTHER description. Hope that helps -
 
Antonios
Apple Fan
Profile
Posts: 381
Reg: Feb 12, 2013
Korinthos, Gree...
4,610
like
05/27/13 04:04 PM (12 years ago)
thank you so much...I'll integrate scringo soon enough, so I'm going to find out... :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.