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 5950935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:27:54+00:00 2026-05-22T17:27:54+00:00

hi friends i am developing a app where there many templates.swipe towards left navigates

  • 0

hi friends i am developing a app where there many templates.swipe towards left navigates to thr next template and towards right navigates to the previous template.I have a method which gets called as soon as i swipe towards any direction which clears all the views related to the previous template and some other functionality.

i have a view “bodyBgView” which gets added for all templates except one templates(wordSearch template).the same is released every time i swipe (in the method that is called when the swipe id done) . when i swipe after visiting the template(wordSearch template) the app is getting crashed.
when i placed debugger i could see the debugging gets terminated at the release statement i.e [bodyBgView release];

the method is mandatory with the release statement b’coz all other templates depend on the method.how can i overcome the situation to get all the templates work fine.

to be precise releasing a view which is already deallocated should not abort my application.

plz help me
Tnx in advance

  • 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-22T17:27:54+00:00Added an answer on May 22, 2026 at 5:27 pm

    i solved my issue by assigning nil after the view is released.

    [bodyBgView release];
    bodyBgView=nil;
    

    then my app was not chrashing. validation on a nil returns nil thus the app doesn’t get chrashed.

    hope helps others who faces same issue.

    thank you

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

Sidebar

Related Questions

I'm developing a web app. I'd like to be able to let some friends
I'm considering developing an app that asks users to invite friends to participate at
Hello friends, I am developing an app in Titanium and I have a tableview
friends. I'm developing a flex mobile app. I've declared a Titlewindow which contains the
My friends and I are developing an app for iphone and android. We need
I'm developing a local app with friends and we're using svn, but we have
I'm developing a facebook iframe app (page app), which counts the user's friends that
Greetings Friends, I am trying to overlay the simple 2D game I am developing
I am developing a simple library in C, for my own + some friends
I'm developing an app that uses iOS4 features (like MFMessageComposeViewController), but I want to

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.