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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:02:26+00:00 2026-06-06T07:02:26+00:00

I am using Xcode 4.3.2 to develop iPhone apps with ARC enabled. while navigating

  • 0

I am using Xcode 4.3.2 to develop iPhone apps with ARC enabled. while navigating in project no crash is there but when I saw the project execution using leaks tool it is showing malloc leak for may times I don;t know hoe to solve …

I used the following coding in project ..theme is to hiding a view with another view while loading data…..

[NSThread detachNewThreadSelector: @selector(StartActivityIndicator) toTarget:self withObject:nil];



-(void)StartActivityIndicator
{ 
    hideView= [[UIView alloc] initWithFrame: CGRectMake(0,0,320,480)];
    activityIndicator= [[UIActivityIndicatorView alloc] initWithFrame: CGRectMake(148,188, 24, 24)];
    hideView.backgroundColor =[UIColor blackColor];
    hideView.alpha=0.8;
    [hideView addSubview:activityIndicator];
    [self.view addSubview:hideView];
    [activityIndicator startAnimating];  

}

is there any error in this or any alternative to this coding..

And when ARC is enabled we have to take care of leaks or not …..

  • 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-06-06T07:02:27+00:00Added an answer on June 6, 2026 at 7:02 am

    You don’t need to use a thread to show an animated activity indicator. Instead of

    [NSThread detachNewThreadSelector: @selector(StartActivityIndicator) toTarget:self withObject:nil];
    

    simply use

    [self StartActivityIndicator];
    

    Using threads can easily lead to problems, for example by accessing UI-related classes and methods outside the main thread, or by using setters that were declared as nonatomic, or by forgetting to add an autoreleasepool, and so on. Don’t go there unless you have to. And if you have to, use grand central dispatch instead of creating your own threads. 🙂

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

Sidebar

Related Questions

I'm using XCode 3 to develop MAC and iPhone apps. Because I'm thinking of
I've been using Xcode to develop iPhone Apps for a couple of years now.
I had a Macintosh I used to develop iPhone apps with using Xcode 4.
I'm planning to buy Mac just to develop Apps for iPhone (iOS) using XCode.
I am using Xcode 4.2 to develop my apps. My current ongoing project is
I'm using XCode 4 to develop an application that can be run on iPhone
I used to use XCode the develop my apps and using that; I could
I develop iPhone/iPad apps using the Adobe ADT tool. it compiles a .IPA file
I am using Corona to develop ios app. I use XCode as IDE. But
I develop some iPhone apps for clients, but I prefer working on a Linux

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.