PDA

View Full Version : Interface Builder




Agi
Mar 29, 2008, 07:09 AM
Hy,

first of all, I don't want you to wright an application for m, I just want to understand the way it is build.

The question I have on this point is how to put together the navigation bar, tabBar (4 categories), tableView and Uiview.

I know that it is drag and drop, but the problem i have is how the structure is laid down. I figured out that the UIView is probably just one, and it's then connected to all the different styles (for each group). But i don't know where and how to define the different stiles for those 4 categories.

Basically the first and the last should have just the black background and the second and third should have indexed list that continues to more detailed view.

I hope all of these is not to confusing. And sorry for the mistakes in the language. Im trying to be bather :)



Eraserhead
Mar 29, 2008, 07:11 AM
Yeah, I think you are asking us to write the application for you ;). I suggest you learn with doing some tutorials for Cocoa on the Mac first.

Agi
Mar 29, 2008, 07:23 AM
Yeah, I think you are asking us to write the application for you ;). I suggest you learn with doing some tutorials for Cocoa on the Mac first.

Sorry for that. I forgot to put the image of what i've done. So you could tell me if i'm going in the right direction.

http://img168.imageshack.us/img168/5898/picture6fv2.th.png (http://img168.imageshack.us/my.php?image=picture6fv2.png)

Eraserhead
Mar 29, 2008, 07:24 AM
Can't you attach a screenshot of what you've done looks like?

Agi
Mar 29, 2008, 07:29 AM
At this point you can see much. Because I would like to just drag and drop the elements and then learn how to connect them all together. That's why i'm asking if this is the right way.

Cromulent
Mar 29, 2008, 07:34 AM
At this point you can see much. Because I would like to just drag and drop the elements and then learn how to connect them all together. That's why i'm asking if this is the right way.

So you haven't actually written any code then?

Agi
Mar 29, 2008, 07:41 AM
No. Thats the point. I was trying to put all the elements together in IB first, and then start coding.

Cromulent
Mar 29, 2008, 07:45 AM
No. Thats the point. I was trying to put all the elements together in IB first, and then start coding.

If you just want to learn how to use IB then that is fine I guess, but if you are writing an application I'm sure it would be easier to put it together piece by piece and debug as you go rather than doing it all at once and trying to catch bugs at the end.

Agi
Mar 29, 2008, 07:54 AM
But there is the problem. Because i'm new in this i don't know where to start. I thought that it would be essayer to make the IB part and then the code.

I'm basically totally lost right now. I have a great idea that needs allot of work and eaves more coding knowledge which I don't have. I can't ask someone to do it for me and then learn from it. And it looks like i'm not even able to start properly.

That's why i tried to ask you guys for some help.

TeeJayEm
Mar 29, 2008, 08:29 AM
At this point you can see much. Because I would like to just drag and drop the elements and then learn how to connect them all together. That's why i'm asking if this is the right way.


You are on the right track. Here (http://www.matthew-long.com/2007/11/09/xcode-30-tutorial) is a very good tutorial on how to connect your IB project to xcode. This is however a tutorial for a mac application but the same concepts for Cocoa Touch are the same. Here (http://forum.insanelymac.com/index.php?showtopic=96104&pid=687548&st=0) is another good Example related more to Cocoa Touch

Cromulent
Mar 29, 2008, 08:56 AM
That's why i tried to ask you guys for some help.

Okay, I'll try and help as much as I can.

Step 1. Learn Objective-C. You won't be able to do anything until you know the Objective-C programming language, Cocoa is entirely built on it.

Step 2. Spend some time reading the Cocoa documentation available on Apples developer site (developer.apple.com), especially this document (http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/chapter_1_section_1.html).

Step 3. Learn how to use Xcode and Interface Builder by reading the manuals that come with them (you may want to start reading them as you are learning Objective-C so you can compile code as you are learning, you want need Interface Builder until this point though).

Hopefully that'll give you an idea of the steps needed to start writing applications in Cocoa for Mac OS X and the iPhone.