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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:43:00+00:00 2026-06-13T16:43:00+00:00

I got to work on ios push notification for an web based app. but

  • 0

I got to work on ios push notification for an web based app.

but I am practicing local push first while I am pending state in IOS developer program.

I found source code of local push and adjusted the code to two places where I thought the right place
– viewController.h, viewController.m.

below is the two files.

viewController.h file

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
@property (strong, nonatomic) IBOutlet UITextField *timeTextField;
- (IBAction)onSaveAlertTime:(id)sender;
@end

viewController.m file

(IBAction)onSaveAlertTime:(id)sender {
// Do any additional setup after loading the view, typically from a nib.
UILocalNotification *localNofication = [[UILocalNotification alloc] init];
if (localNofication == nil) return;
NSDate *pushDate = [[NSDate date] dateByAddingTimeInterval:[timeTextField.text intValue]];

localNofication.fireDate = pushDate;
localNofication.timeZone = [NSTimeZone defaultTimeZone];
localNofication.alertBody = @"Local Push Notification!";
localNofication.alertAction = @"View";
localNofication.soundName = UILocalNotificationDefaultSoundName;
localNofication.applicationIconBadgeNumber = 1;

NSDictionary *userInfo = [NSDictionary dictionaryWithObject: @"오늘의 일정은 로컬푸시를 테스트하는 것 입니다" forKey:@"message"];

localNofication.userInfo = userInfo;
[[UIApplication sharedApplication] scheduleLocalNotification:localNofication];

}

It looks like my viewController.m file does not reconize timeTextField object which declared

in viewController.h file. What should I do to reconize timeTextField object?

  • 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-13T16:43:02+00:00Added an answer on June 13, 2026 at 4:43 pm

    Did you synthesize your text field?

    @synthesize timeTextField;
    

    In the beginning of your .m file

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

Sidebar

Related Questions

I just got pagination to work on my site, but I wanted to use
I got the delay to work when you click on the buttons but I
I've got an app where the links work fine when I'm on the homepage,
I just got my keydown method to work. But i get system beep everytime
I just got my ssl certificate to work for the first time. For some
I submitted my fantasy football app for the first time and got rejected for
I've got an iOS app that has some fairly complex UITableViewCells. I'm considering converting
I'm using CoreData in a multi-threaded iOS-app, and everything seems to work fine -
I've got a universal iOS app that I've been working on. For the most
I got to work on PHP app which requires a webservice call to an

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.