Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 85

Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
01/15/13 10:23 PM (13 years ago)

how to add a view to the layout

I can only image that the title of this thread will make some of you plugin building vets have a good chuckle - the thing is, I have NO idea how to use interface builder...I've figured out what works for me with buzztouch, and as a result I'm probably slacking off on the "learning new things" aspect of app development Well now it looks like I need to figure it out I'm trying to integrate a new SDK into my app, and the tutorial is giving me the following instructions - "Add a new view into your application layout -- Go to Identity Inspector and set Custom Class of the view to ALAdView. Ad view height must be 50 pixels. Ad view width should fill the screen" I'm confused here - is this assuming my app was designed from the ground up using interface builder? Is there a way to get this to work with Buzztouch? The whole point of this view is to have a place to show banners
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
01/16/13 02:22 AM (13 years ago)
i wonder if you can achieve your goal using the blank screen plugin and adding the codes to the file, im not sure if that would work just was wondering.
 
mutzy
Aspiring developer
Profile
Posts: 841
Reg: Nov 03, 2010
Medford, MA
9,860
like
01/16/13 05:02 AM (13 years ago)
It sounds to me like they want you to use a xib file. It's not THAT bad once you get used to it. Check out Dave's video "Let's build a plugin". He shows how to create a xib file, drag a view on it, and how to change its class. http://www.youtube.com/watch?v=OJrMVTn8z0s&feature=youtu.be Josh
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/16/13 06:54 AM (13 years ago)
Hey @Absentia, Check out your new pic! Showing the cold side of yourself..lol LA
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
01/16/13 08:18 AM (13 years ago)
Slacker.... You'll ace this in no time if you watch that vid mutzy suggested. You're good at this stuff. The jist of it is to crate a new plugin using that plug-in creator- Then add a new blank interface builder file to that plugin and give it the EXACT same name as your class. (eg: myaladviewbtplugin.h, myaladviewbtplugin.m, myaladviewbtplugin.xib) Now the class will load. This is where It gets a little tricky - Then you need to click on the VIEW and set the class using that identiy inspector to ALAdView as they direct you to. Then when you launch that plugin screen, the view will be the subclassed ALAdview. I use a similar trick to pull a iphone calendar view into an app. I learned how to do it following some of the steps I found here: http://tinyfool.blogspot.com/2010/01/tutorialhow-to-use-iphone-calendar.html (yes, that tutorial is a bit outdated and xcode 3 - but it works)
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
01/16/13 07:07 PM (13 years ago)
thanks a lot for the help guys - I finally got it going. It was the "dragging the little circle to the view" part that I would never have figured out. That webinar was great, I don't know why I am just now getting around to watching it. Haha I've always wondered what the heck IBAction meant - now I know! I only watched the first half but I'm looking forward to finishing it tomorrow
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
01/16/13 07:14 PM (13 years ago)
glad to hear you got it going buddy keep up the great work, i always love your apps
 

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.