Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 52

Grateful
buzztouch Evangelist
Profile
Posts: 69
Reg: Dec 03, 2012
Long Beach
5,340
12/28/13 08:39 PM (11 years ago)

Add To Favorite Plugin

Hi, I was wondering if there was a way to make the add to favorite plugin be a button on the screen instead of the navigation bar. For example, I use the Menu Button Plugin, and make one of the button a favorite button, or use the alert menu and make one of the actions an add to favorite action. Thank you for your assistance.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/29/13 03:40 AM (11 years ago)
Hi Grateful. The favourites plugin can be put anywhere you like with a little bit of coding. This method adds and removes the current screen from the favourites list. [[AK_favorites favoritesManager]favoriteAdd]; so if you wanted to add it to the button menu you would need to amend the button pressed method with an if statement and add this line. Another useful method is [[AK_favorites favoritesManager]checkIfFavorite]; This method check if the screen is a favourite or not This can be used if you want different buttons displaying whether the status of the button similar to the navbar buttons.
 
Grateful
buzztouch Evangelist
Profile
Posts: 69
Reg: Dec 03, 2012
Long Beach
5,340
like
12/30/13 05:39 AM (11 years ago)
Thanks for that @kittsy. I really appreciate it.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
12/30/13 05:41 AM (11 years ago)
no probs do you know what to do now. In the How to section there is a tutorial on how to make a button do anything. It's a bit dated but you should be able to follow it.
 

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.