Massive help with an iPhone Application...PLEASE!   :(

Hello.
Since yesterday I have been trying to hunt down a bug in a simple iPhone application I made while following an exercise from the iPhone SDK Development book. Its a simple application with a navigation controller and a table view.
You can download my project at
public.me.com/felipelaso
In the main view when the application is opened, you see a list of items and an option to edit them or add an item. When you click on add, a new view controller is popped, you get a textfield and a keyboard, and when you are done you go back to the table view and the name you just entered is added to the list.
The problem is that as soon as you hit done on the keyboard, or click back on the navigation bar I get the following messages in the console:
This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
I have reinstalled my developer tools, created a new project from scratch, added the frameworks again and nothing seems to work.
I though it might me something with my frameworks. But then I downloaded a bunch of the samples with table views and navigation controllers, and they all work fine. All my other applications work fine too, except this one.
I have spent all morning, and all afternoon yesterday trying to find out whats wrong, but im not an Xcode or Cocoa expert and I was hoping I could find some help.
The project can be downloaded for anyone to test with.
Please! any help I get would be gladly appreciated.
Thanks in Advance,
Felipe.

Ok I downloaded it, ran it on the simulator and everything was fine. Put it on my device and i got an EXCBADACCESS when I clicked the done button as you described.
EXCBADACCESS means something is getting released before you're trying to access it again. I opened the debug console to see this. Then I opened the debugger to find out exactly what the issue is. In my stack the last custom method that was called is [RootViewController addTeamNamed:] This makes me believe the array is being released.
Now I take your addTeamNamed method and pepper it with log statements:
- (void)addTeamNamed:(NSString *)teamName
NSLog( @"A" );
[teams addObject:teamName];
NSLog( @"B" );
NSIndexPath *indexPath;
indexPath = [NSIndexPath indexPathForRow:[teams indexOfObject:teamName] inSection:0];
NSLog( @"C" );
[[self tableView] insertRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath] withRowAnimation:NO];
NSLog( @"D" );
The console output of which is: "A B C". Ok, no D, so that means the error is the in the insertRows... method.

Similar Messages

  • I've just came on board from Andriod and need massive help with the Contacts application any one out there willing to help the 'noob'?

    I had the folks at the store port over all of my contacts from my old
    ratty Andriod phone to my new shiny iPhone.
    however all 200+ of my contacts sort of "shook" out,
    meaning say John Smith, on my old phone,
    had in my contacts the following:
    John Smith
    123 Main St. Anytown, Anystate USA
    555-826-4879 home
    555-799-4247 cell
    [email protected]
    johnsmith@facebook
    all nice and neat on my andriod but when it ported over
    all that information was just scattered all over my contacts sort of like:
    john smith, smith john
    john smith 123 main st. etc.
    johhn smith home 555 etc.
    john smith cell 555 etc.
    john smith johnsmith@ etc.
    etc.
    so for all those 200+ contacts in my phone, I've got a zillion of them now...
    so I'd like to get this all back in order before I and Siri explode.
    I know nothing, and I know even less about outlook and the sort.
    But I do know I am in Dire need of help with this... I figured that eveything else
    involving iphones and apple in general was supposed to be cake but it seems
    like this is the only thing that isn't cake at all... unless, I'm just a right idiot. (which is possible, hence spelling and grammatical issues).

    I believe I've tried to sync it with google, but it didn't seem to take
    muchless take my calender. it seems to favor my facebook calender
    more over my google calender, but Siri seems to be helping me re-write
    it...but that's not the game here, it's the contacts. I've tried to export
    the cvp (??) list and import it into my iTunes account. However, It only
    doubled my issue because it didn't over write my existing contacts.

  • Help with some iPhone issues please

    Ok, I am starting to have some problems with my iPhone 3G, and would really appreciate any help with these issues.. here is what is happening
    1) iPhone Vibrate is pretty much broken, turns off and on vibrate by itself.. and now is vibrating very softly.
    2) iPhone wont sync my Music anymore, I have 3 playlists that I use on my iPhone, and none of them will update. When I sync my iPhone, everything syncs but the music.
    3) iPhone sometimes completely freezes and i cant get it to go to the locksreen or power off, so I have to do a hard restart.

    Hi Matt,
    Try restoring the iPhone, this article: http://support.apple.com/kb/HT1414 will walk you through the process.
    If the vibrate and unlock issues persists, the iPhone may need hardware repair. Just make a reservation to have a Genius, at a local Apple retail store, take a look at it or call AppleCare.
    http://www.apple.com/retail/geniusbar/
    U.S. iPhone technical support: 1-800-MY-IPHONE (1-800-694-7466)
    Message was edited by: Jason L

  • Help with an urgent application please

    algier please recommend me I need a web application that meets the characteristics of a forum system and database must be Oracle 10g or 11g
    I hope I'll be able to help many grasias pendiende and those who can help me

    We do not use urgent applications.

  • Help with my iPhone 4 Please

    Helo

    My number is no longr connected with Imessage on both my iphone and computer. Everytime I text, my friends receive my message from my email. I have reset my phone both under settings and using itunes. I have also reset IMessage, and nothing seems to be working.

  • Help With my Iphone 3gs please.

    When i connect my iphone 3gs itunes comes up and says "Itunes could not connect to this iphone. an unknown error (0xE8000012)"

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Has any of this been tried?

  • HT4061 need help with my iphone 4 i try to update last five  days but after updating to 6.1.2  it says that    We're sorry, we are unable to continue with your activation at this time. Please try again later, or c

    need help with my iphone 4 i try to update last five  days but after updating to 6.1.2  it says that
    We're sorry, we are unable to continue with your activation at this time. Please try again later, or c

    If the iPhone was hacked and unlocked via unofficial means, it has become locked again. Insert original SIM in the phone to activate with iTunes.

  • Ok so my i need help with my iphone 4s... i have about $5.00 of credits left of the itunes card i got and i decided to get a show and it says i need to verify my credit card, why doesnt it just use the credits i have? its under 5 bucks? help me please

    ok so my i need help with my iphone 4s... i have about $5.00 of credits left of the itunes card i got and i decided to get a show and it says i need to verify my credit card, why doesnt it just use the credits i have? its under 5 bucks? help me please

    You have to do it here for help
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I need help with a VB Application

    I need help with building an application and I am on a tight deadline.  Below I have included the specifics for what I need the application to do as well as the code that I have completed so far.  I am having trouble getting the data input into
    the text fields to save to a .txt file.  Also, I need validation to ensure that the values entered into the text fields coincide with the field type.  I am new to VB so please be gentle.  Any help would be appreciated.  Thanx
    •I need to use the OpenFileDialog and SaveFileDialog in my application.
    •Also, I need to use a structure.
    1. The application needs to prompt the user to enter the file name on Form_Load.
    2. Also, the app needs to use the AppendText method to write the Employee Data to the text file. My project should allow me to write multiple Employee Data to the same text file.  The data should be written to the text file in the following format (comma
    delimited)
    FirstName, MiddleName, LastName, EmployeeNumber, Department, Telephone, Extension, Email
    3. The Department dropdown menu DropDownStyle property should be set so that the user cannot enter inputs that are not in the menu.
    Public Class Form1
    Dim filename As String
    Dim oFile As System.IO.File
    Dim oWrite As System.IO.StreamWriter
    Dim openFileDialog1 As New OpenFileDialog()
    Dim fileLocation As String
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    openFileDialog1.InitialDirectory = "c:\"
    openFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"
    openFileDialog1.FilterIndex = 1
    openFileDialog1.RestoreDirectory = True
    If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
    fileLocation = openFileDialog1.FileName
    End If
    'filename = InputBox("Enter output file name")
    'oWrite = oFile.CreateText(filename)
    cobDepartment.Items.Add("Accounting")
    cobDepartment.Items.Add("Administration")
    cobDepartment.Items.Add("Marketing")
    cobDepartment.Items.Add("MIS")
    cobDepartment.Items.Add("Sales")
    End Sub
    Private Sub btnSave_Click(ByValsender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
    'oWrite.WriteLine("Write e file")
    oWrite.WriteLine("{0,10}{1,10}{2,10}{3,10}{4,10}{5,10}{6,10}{7,10}", txtFirstname.Text, txtMiddlename.Text, txtLastname.Text, txtEmployee.Text, cobDepartment.SelectedText, txtTelephone.Text, txtExtension.Text, txtEmail.Text)
    oWrite.WriteLine()
    End Sub
    Private Sub btnExit_Click(ByValsender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
    oWrite.Close()
    End
    End Sub
    Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
    txtFirstname.Text = ""
    txtMiddlename.Text = ""
    txtLastname.Text = ""
    txtEmployee.Text = ""
    txtTelephone.Text = ""
    txtExtension.Text = ""
    txtEmail.Text = ""
    cobDepartment.SelectedText = ""
    End Sub
    End Class

    Hi Mikey81,
    Your issue is about VB programming, so Visual Basic forum is a better forum for your case. I moved this thread there,
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Need help with a small application

    Hi all, I please need help with a small application that I need to do for a homework assignment.
    Here is what I need to do:
    "Write an application that creates a frame with one button.
    Every time the button is clicked, the button must be changed
    to a random color."
    I already coded a part of the application, but I don't know what to do further.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ColourButton extends JFrame {
         JButton button = new JButton("Change Colour");
         public ColourButton() {
              super ("Colour Button");
              setSize(250, 150);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel panel = new JPanel();
              panel.add(button);
              add(panel);
              setVisible(true);
         public static void main(String[] args) {
              ColourButton cb = new ColourButton();
    }The thing is I'm not sure what Event Listener I have to implement and use as well as how to get the button to change to a random color everytime the button is clicked.
    Can anyone please help me with this.
    Thanks.

    The listener:
    Read this: [http://java.sun.com/docs/books/tutorial/uiswing/components/button.html]
    The random color:
    [Google this|http://www.google.com/search?q=color+random+java]

  • TS1814 There is a problem with your iPhone. Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country. To find your nearest Apple Store, click here.

    There is a problem with your iPhone.
    Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country.
    To find your nearest Apple Store, click here.
    Please help me i can aktivate my phone imei 012423006333181.

    There is a problem with your iPhone.
    Please visit the Service Answer Center to find answers to all your questions about service options, warranty and other processes in your country.
    To find your nearest Apple Store
    no imei also

  • Need help with my iPhone 5 and my Macbook Pro.

    Need help with my iPhone 5 and my Macbook Pro.  I was purchased some music on itunes at my mac. Some reason I deleted those music from both on Mac and iPhone 5.  Today, I went to my iPhone iTunes store inside of iCloud to redownload my puchased. But those song won't able to sync back to my iTunes library on my Mac.  Can anyone help me with that ??....
    iPhone 5, iOS 6.0.1

    You've posted to the iTunes Match forum, which your question does not appear to be related to. You'll get better support responses by posting to either the iTunes for Mac or iTunes for Windows forum. Which ever is more appropriate for your situation.

  • Can anyone help with my iphone 3gs activation?

    Hi, I am trying to get help with my iphone 3gs. It's not being activated.

    Find some place that will provide support for illegally unlocked phones, or if you decide that you don't want to do something illegal, get it unlocked legally, through the carrier it's locked to.

  • I need help with my Iphone 4 reset cause I will activate it in other country

    I need help with my Iphone 4 reset cause I will activate it in other country
    Thanks

    Help you what?
    You have provided no information about your issue or what you are trying to do.

  • What's the phone number I should call for help with my iPhone and ihome dock?

    What's the phone number I should call for help with my iPhone and ihome dock?

    http://www.ihomeaudio.com/support/

Maybe you are looking for

  • SUBMIT button works only when clicked twice... Online interactive form

    Hi, I have created a interactive form with SubmitToSAP button. In this I will enter a contract number and will click SUBMIT button. For the first time it is fetching the contract details properly. In the same form, i am changing  the previously enter

  • Making Upper Limit in FICO ,ECS Report

    Hi!! I am Creating one ECS Report in FICO. I have Given Total amount at the footer. now i want to display Upper Limit of amount Means Greatest amount amongst all amount. I am Using REGUH-RWBTR Field for Displaying my amount. can anybody tel me how to

  • How to Email Reader View from Safari

    On both iPad and iPhone when I display a web page using reader view I can then email that full article/reader view. In Safari on Yosemite that reader view is also available but there seems to be no way to email the full article from reader view. Is i

  • Preview in new window

    Is there any way to get Dreamweaver to stop using the last IE window I opened as the preview window? For example, if I have a web page open already and then preview a page in Dreamweaver it uses the window I already had open as the preview window. Ca

  • Skip User Migration on Zero Touch Intallation

    We're using MDT 2010 U1 integrated with SCCM 2012 SP1 (I think it's CU3 but I'm not 100% positive). I've created a ZTI for our lab machines so that our lab techs can launch and forget and don't have to touch every computer in the lab when they need r