Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 11    Views: 79

aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
05/29/12 08:28 PM (13 years ago)

Question About Blank Page Plugin (Xcode)

So how do I go about using the blank page in Xcode. Is it as simple as modifying the .h, .m and adding a view controller in the files under: Plugins > Blank Page folder? It seems this would be too simple. Do I have to be self hosted to customize blank pages and use them in my app? I was playing around with it and it seemed to sort of work. I could get some of the UI to display but not the way I built it in Xcode (it was like half hanging off of the page). I think it might have something to do with the delegate I use for the output of the UI (I'm getting some kind of delegate error).
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 08:56 PM (13 years ago)
The plugin is provided mostly as a starter plugin for you to modify. Yes it really is relative easy to create a plugin. Create the appropriate files zip into a plugin package and install on your control panel.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 09:04 PM (13 years ago)
Missed your question about being self hosted. Your can: A. Be self-hosted. B. Add plugin files directly to source code. C. Modify a plugin files and replace the original files. Each method has advantages, drawbacks and consequences. I have an article in my guide that discusses option B. When ever you modify a plugin's files in the Source Code (say add Google maps API key) you're using option C. Fred
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
05/29/12 11:57 PM (13 years ago)
Thanks for your help. I will take a look at your guides and see what will work for me.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/30/12 07:21 AM (13 years ago)
I've been using the blank screen as a 'plugin test ground' to try and make my own plug-ins. I used the BT Plug-in Guide and they have you duplicate that plugin to make your own 'my first plug-in'. Not sure where the link is for that document. I think it came packaged with the BT server. Download the server and see. great document if this is an area you are into. I've just started to learn how to throw things up on my own screen now. I've gotten some text, some images and some buttons up there. I'm trying to learn how to use .XIB files in my BT projects so I can use the IB to create and modify my new custom screen. I think i'm getting close, but still a ways to go....
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/30/12 08:02 AM (13 years ago)
You'll find the PDF in your account settings page (self-hosting). Fred
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
05/30/12 08:05 AM (13 years ago)
I have read that document but it is aimed more for users who are self hosted, which i am not. I guess what I am asking is if I modify the code directly in the plugin folder in xcode is that all i need to do or do i have to modify it in any other places?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/30/12 08:12 AM (13 years ago)
If you modify the code (directly in the downloaded source code) that's all you need to do. But take note that the Blank plugin screen will then be the same throughout the app whenever used. But that's a clever use of otherwise unused screens. Fred
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
05/30/12 08:36 AM (13 years ago)
Thank you for the clarification. I think I have a good idea of doing what I need done.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/30/12 08:46 AM (13 years ago)
Just an afterthought, take heed of how Buzztouch works with JSON data and the files. Fred
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
05/30/12 08:55 AM (13 years ago)
@aasatt dropme a line here skompdev @ skomp.net If you are barking up the same tree I currently am on trying to make a custom plug-in... I'd be happy to see if we can find a way to test your code for a plug-in on my 2.0 Self Hosted. This has been a lot of learning and trail and error for me. Maybe we can learn something from each other?
 
aasatt
Aspiring developer
Profile
Posts: 34
Reg: Apr 29, 2012
Huntington Beac...
2,140
like
05/30/12 09:11 AM (13 years ago)
Sounds good. Ill send you an email shortly.
 

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.