Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App (iOS7) Creating a Data Collection Creating a @property

carlos carrillo
carlos carrillo
1,197 Points

Simulator closing after pressing button, why is this happening?

When I run the program I'm getting Build successful but when I click on the button the simulator closes and the code bellow is highlighted in green. it also highlights the the thread 0- [ViewController buttonPressed]

not sure what I've done for this to happen.

self.predictionLable.text = [self.predictions objectAtIndex:3]; Thread 1 :breakpoing 1.1

I also get this result in my terminal (lldb)

any ideas??

2 Answers

Hi, try to press cmd + shift + k . This will clear your project.

Write back if this help , if not , i see other thing as i have same issues sometimes but i get them away .

A screenshot would be good to as I'm quite new to this too .

Hope this can help .

carlos carrillo
carlos carrillo
1,197 Points

unfortunately this didn't work, here's a screenshot of what I mean http://imgur.com/aHDBWXW

Thanks for you help

AAA okay, you see these blue pointers ? their are like blue rectangular point, drag them to the bin :smiley:

Works?

carlos carrillo
carlos carrillo
1,197 Points

AWESOME! yes it worked, Thank you!! :D

but why does this happen?

Umm i don't really know . It may be something that confused Xcode ? i don't know sorry i can't answer that , i just have no idea :p

carlos carrillo , if you go throw the space cat lessons, at the end i think there should be debuting lesson that Amid will who you . You may just go over it now and see. I didn't see it yet but it may be helpful .

Jimmy Boone
Jimmy Boone
8,940 Points

Aurelian Spodarec That last trick solved my issues as well. It had me perplexed for the longest

carlos carrillo
carlos carrillo
1,197 Points

There's so much to learn, I'll make sure I pay attention then! Thanks again Aurelian, you've been great help!!

Yes, there is , but i know , you know and other know , we can do it :smiley:
The first part is the hardest , but even if you don't understand it , just go , you eventually will get it . This works on me . Don't get put away , just do it . In a month , you will get used to it , at least me . I can't write code , a simple program, but i do understand how it works, i just don't have the command in my head really , some i do , m mistake was that i didn't put any practice on my side .

Im glad this helped :) and i hope this helps too :)