Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6534661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:16:38+00:00 2026-05-25T10:16:38+00:00

I’m starting my first iOS app and I encounter an error that occurs only

  • 0

I’m starting my first iOS app and I encounter an error that occurs only when user touches the UItableView. THis app is an helper to conjugate verbs in japanese.
Here is how it works:

I have a first view that asks user a japanese verb in alphabet.
I create an instance of a Conjuger class that copies the verb entered and prepares the analysis.
I create an instance of my resultViewController.
I associate my conjug object to a property of that controller.
I modally display the view.
The resultViewController displays everything fine, all datas being loaded from the Conjuger object created from its parent view.

But, if I touch the screen to scroll the view, it gets me an error EXC_BAD_ACCESS.
I tried to debug it, but I’m not good enough yet to find where the problem lies.
I suspect my conjug object to be released. The odd is tat the attribute of that object “verb” is still intact, but other properties are empty… How come?

Here my Conjuger object declaration:

@interface Conjuger : NSObject
{
    NSString *verb;

    //parties qui concernent l'analyse du verbe
    //=========================================
    int group;
    NSString *verbEnd;  //la terminaison du verbe
    NSString *verbBase; //la base du verbe que l'on emploi dansl es conjugaisons

    //declinaisons possibles
    //======================
    /*
     Les clefs sont :
     pre : present ou pas : passé
     a : affirmatif ou n : négatif
     n : neutre ou p : poli
     */
    NSMutableDictionary *declinaisons;
    //les declinaisons vont etre separees en section pour la table view
    int declinaisonsSections;
    //Titres des sections
    NSArray *sectionsTitles;
}

@property (nonatomic, retain) NSString *verb;
@property (nonatomic) int group;
//@property (nonatomic, retain) NSMutableDictionary *declinaisons;

-(Conjuger *) initWithVerb:(NSString *) verb_;

//analyse du verb (recherche du groupe etc...)
-(int) _analyse;

//action de conjugaison du verbe
-(BOOL) conjugate;

//nombre de sections disponibles
-(NSInteger) sectionsCount;

//nombre de lignes dans une section donnee
-(NSInteger) sectionLinesCount:(NSInteger) sectionId;

//permet deretourner le titre d'une section
-(NSString *) sectionTitle:(NSInteger) sec;

//permet de retourner une declinaison pour une section precise
-(NSString *) declinaisonsBySection:(int) sec sectionLine:(int) secline;

@end

My UITableView doesn’t have any delegate, but only my ResultViewController as a DataSource.
The EXC_BAD_ACCESS error appears in the method titleForHeaderInSection.
This method contains :

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
    return [conjug sectionTitle:section];
}

THe methos is called after loading, by the UITableView I suspect, but as this controller is not a UITableViewDelegate, why is this method called on user action? Just a scroll by the way…

My UITableView doesn’t take all the screen and is placed into a view.

I don’t know what details I can add, please ask if you need any informations. I can post more code or screenshots if needed.

Edit : Here is the code where I instanciate my Conjuger object and assign it to my sescond view controller

//creation de l'objet conjuger qui servira a afficher les resultats dans la vue modale
        Conjuger *conjug = [[[Conjuger alloc] initWithVerb:verb.text] autorelease];

        //chargement de la vue modale
        ConjugerResultsViewController *res = [[[ConjugerResultsViewController alloc] init] autorelease];
        res.conjug = conjug;

        //affichage
        [self presentModalViewController:res animated:YES];

I have an autorelease here, but I don’t feel my object to be release, or not completly if it’s possible. My conjuger attribute “verb” still contains the data, but not my sectionsTitles…
Should I declare all my properties with @property (nonatomic, retain) ?
I thought @property to be used only if our attributes have to be called from outside of our object, am I wrong? I feel confused now 🙁

But I changed my attributes with @property and I access them by “self” as proposed and IT WORKS! But still I don’t understand why… I’m trying to find some more objective-c readings, my C courses are far behind me now -_-.

I’ll investigate with Apple-i in Xcode4 as proposed, it can be usefull for further problems.

Thank you for your reading and your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:16:39+00:00Added an answer on May 25, 2026 at 10:16 am

    If the crash is in [conjug sectionTitle:], I’d guess that your section titles are a zombie. Make sure you retain the section titles array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.