Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2010, 05:01 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 19
Hamood is on a distinguished road
Default My first problem on X-code

My first problem on X-code

*

*

I just try to learn objective c I watch video training (LYNDA) it was helpful. I wrote small program (I add text view and one bottom to change the color of text) build is succeed when I run on it simulator it is not working I checked code and interface builder it seems ok.

Another question how to make X-code 3.2 projects work on X code 4.2.

Thanks for your help

*
Hamood is offline   Reply With Quote
Old 12-28-2010, 09:15 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 5
Josso is on a distinguished road
Default

What's the error you are getting?
Josso is offline   Reply With Quote
Old 12-28-2010, 11:17 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 19
Hamood is on a distinguished road
Default

build is succeed when i run it the program is start on simulator when i press the bottom the program is quit below error:
=============================================
2010-12-28 19:51:32.599 WhatDay[326:207] -[WhatDayViewController displayDay]: unrecognized selector sent to instance 0x4b51880
2010-12-28 19:51:32.602 WhatDay[326:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WhatDayViewController displayDay]: unrecognized selector sent to instance 0x4b51880'
===============================================
Hamood is offline   Reply With Quote
Old 12-28-2010, 06:30 PM   #4 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

Quote:
Originally Posted by Hamood View Post
I just try to learn objective c I watch video training (LYNDA) it was helpful.
Is this the one by Simon Allardice? I worked through that once...I don't have it now, but I might still remember bits.

Quote:
Originally Posted by Hamood View Post
I wrote small program (I add text view and one bottom to change the color of text) build is succeed
Are there any warnings (about missing methods)?

Quote:
Originally Posted by Hamood View Post
when I run on it simulator it is not working I checked code and interface builder it seems ok.
I believe you make the connections in IB, and don't manually write the target-action code for the button...?

The error message indicates that the button is wired up correctly (the method is being called). However, are you sure the method is there in WhatDayViewController.m? Even if it's a blank method, make sure that you have the method declaration
- (IBAction)displayDay{
// ...Some code
}
in that file. Even if you have a blank method, just make sure it's in there. You can implement it when you resolve the crash.

Quote:
Originally Posted by Hamood View Post
Another question how to make X-code 3.2 projects work on Xcode 4.2.
Thanks for your help
I'm assuming you mean to change the SDK, not actually use Xcode 4 (which is under NDA)?

Make sure you actually have the 4.2 SDK installed. You should no longer have 3.2. If it doesn't automatically convert, go to Project > Edit Project Settings. In the Build tab, search for Base SDK. Change that to iOS 4.2.

Glad to be of service.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!

Last edited by musicwind95; 12-28-2010 at 06:30 PM. Reason: Formatting
musicwind95 is offline   Reply With Quote
Old 12-30-2010, 03:39 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 19
Hamood is on a distinguished road
Default

Thanks a lot you helped me the second for my first still i'm trying to solvet I just copy what I learned from video training ( yes it's by Simon ). I checked Exercise files (coming with video training ) I found the same project which I tray to make it when I checked the code I found only delegate.m file is not the same with my project and on training Simon (trainer) didn't ay any think about it.

Again thanks
Hamood is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 423
11 members and 412 guests
AppleDev, chemistry, Emy, Gi-lo, ipodphone, mistergreen2011, pipposanta, Retouchable, skrew88, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,923
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0