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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:03:58+00:00 2026-05-23T01:03:58+00:00

//inside New_Entry.h IBOutlet UIDatePicker *timePicker; @property (nonatomic, retain) UIDatePicker *timePicker; //inside New_Entry.m @synthesize timePicker;

  • 0
//inside New_Entry.h
IBOutlet UIDatePicker *timePicker;
@property (nonatomic, retain) UIDatePicker *timePicker;

//inside New_Entry.m
@synthesize timePicker;

//inside AppDelegate.m
#import "New_Entry.h"
-(void)applicationDidBecomeActive:(UIApplication *)application {
NSDate *todayDate;
todayDate = [[NSDate alloc]init];
New_Entry.timePicker.date = todayDate;
[todayDate release];
}

Got an error in “New_Entry.timePicker.date = todayDate;”
How do I update the timePicker.date to now whenever the app becomes active? Whats the difference between “DidBecomeActive” and “DidEnterForeground”?

Edit:

In AppDelegate (applicationWillEnterForeground)
New_Entry *new_Entry_instance = [[New_Entry alloc]init];
new_Entry_instance.timePicker.date = [NSDate date];
  • 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-23T01:03:59+00:00Added an answer on May 23, 2026 at 1:03 am

    This code fails because you are not calling timePicker.date on a valid instance of the New_Entry class.

    To make this work you would have to do something like this:

    New_Entry *new_entry_instance = [[New_Entry alloc] init];
    new_entry_instance.timePicker.date = todayDate;
    

    If you are unsure of why this is the way to do it then please ask.

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

Sidebar

Related Questions

Im using Awesomium to try and implement webpages inside my windows form application. I've
I'm trying to retrieve only word from inside each new instance of the newEntry
I have a variable @products = Product.all defined inside new method in a controller.
How do you get the text inside the new HTMLEditor in ASP.Net Ajax Control
I try to create a new file inside a JSP and try to save
Say i have a object in dynamic memory (new) and inside one of its
I was wondering if it is possible to make a new file inside the
Inside my control, I have: ContextMenu = new ContextMenu(); ContextMenu.MenuItems.Add(new MenuItem(&Add Item, onAddSpeaker)); ContextMenu.MenuItems.Add(new
I am new to spring and I am currently using ClassPathXmlApplicationContext to getBean inside
I have this inside my DAO public String CSNSurvey() { StringBuilder mailstr = new

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.