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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:56:16+00:00 2026-06-16T21:56:16+00:00

I have multiple View Controllers set up that have a UIDatePicker in each view.

  • 0

I have multiple View Controllers set up that have a UIDatePicker in each view. I began testing using the Leaks tool and there are no Leaks from the date picker. Next I began testing using the allocations tool and this is where I’m finding all of the problems. Every each date picker is initialized in viewDidLoad I set the datepicker mode like this:

datePicker.datePickerMode = UIDatePickerModeDate;

Each time a View Controller that contains a date picker is displayed there are multiple allocations of “Malloc 392 KB” which eventually leads to the crash of the app. When digging deeper in the allocations tool it states that the responsible caller is [UISectionRowData:RefreshWithSection….]. I’m not sure how to approach this and fix it. Any help would be great. Attached are some screenshots from the allocations tool.

enter image description here
enter image description here
enter image description here

  • 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-16T21:56:17+00:00Added an answer on June 16, 2026 at 9:56 pm

    I think the line

    datePicker.datePickerMode = UIDatePickerModeDate;
    

    is probably misleading and it’s probably the next line causing the leak

    date.inputView = datePicker;
    

    my guess would be date has a synthesized inputView variable which is retaining the object. Given you’re doing alloc and init and no autorelease on this line…

    datePicker = [[UIDatePicker alloc]init]
    

    I’d expect this is the leak but hard to say as you may be calling release later but if not this would be my guess.

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

Sidebar

Related Questions

Using storyboard, I have a table view controller containing multiple dynamic prototype cells. One
I have multiple textfields on my view, and each time a textfield is taped
i have a scroll view with multiple images and i am using this code.
I have a view that has multiple views inside it, and an image presentation
I have a fairly complex view that has multiple forms, lots of validations on
I have created a grid view that displays six cells of content. In each
I asked a question about dismissing multiple view controllers previously and the answers that
I have a MVC View that generates multiple Ajax.BeginForm , with a button in
I have multiple view controllers in my application with uipickerview (which get visible on
In one of my Controllers, I have multiple URLs that will ultimately render in

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.