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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:20:36+00:00 2026-06-01T12:20:36+00:00

I am using the below code, but I am not getting that why it

  • 0

I am using the below code, but I am not getting that why it is not working properly, I think my logic is incorrect.

Please take a look and suggest me the solution.

- (IBAction)fajarButton:(id)sender {

    name = @"f";

    NSLog(@"Selected namaz is Fajar");

    [a1 setAlpha:0]; [a2 setAlpha:0]; [a3 setAlpha:0]; [a4 setAlpha:0]; [a5 setAlpha:0];

    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; 
    [dateFormatter setTimeZone:[NSTimeZone localTimeZone]]; 
    [dateFormatter setDateFormat:@"EEEE"]; 
    NSString *day = [dateFormatter stringFromDate:[NSDate date]]; 

    NSLog(@"day::: %@", day);


    if ([day isEqualToString:@"Monday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Tuesday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Wednesday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Thursday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Friday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Saturday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
    if ([day isEqualToString:@"Sunday"]) {

        [fajarButton setUserInteractionEnabled:NO];

    }
}

What here I am trying to do is that, say, if today is monday and this button clicked once then after it should be disabled for this day monday so that user would not click it again or whenever user clicks it an alert should come up that you have already done that. And when new day Tuesday will come and app will be started, as the new day has started now again the button will be enabled and user will be able to click it once.

How to achieve it all…. I am in much problem

  • 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-01T12:20:37+00:00Added an answer on June 1, 2026 at 12:20 pm

    Looks like your friArray is empty.

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

Sidebar

Related Questions

I'm using the code below for Android JSON parsing but I am getting the
I wanted to generate a list view using below code. But after running this
I am using the code below to validate integers and floats in ASP.NET, but
I am using the code below to replace text inside a div. But I
I'm rendering PDF pages on iPhone using the code below. It works, but the
I am using blow code for join in nhibernate, which is working fine. But
I implement very big script logic using jquery plugin at caret(http://code.google.com/p/jquery-at-caret/), but now when
the code below is working, but I want to make sure it's correct .
i am using below code to change the the font type of text view.
Currently i'm using below code which works well. $(#topperAtBaseLevel:visible, #lowerAtBaseLevel:visible, #midAtBaseLevel).hide(); any optimised code?

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.