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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:49:33+00:00 2026-05-15T13:49:33+00:00

Hi I am trying to call a method from a method, I am getting

  • 0

Hi I am trying to call a method from a method, I am getting incompatible type for slider changed on the code where I am calling the method from:

[self EVsliderChanged: (float)EVslider.value ];

I assume that means that float is not the right type for uislider.value? or perhaps it is expecting me to pass it something different, bellow is the psudo code from .m :

- (IBAction) EVsliderChanged:(UISlider *)sender {  
    // code I want to run if either EVSliderChanded or PickerView changes
}

- (void)pickerView:(UIPickerView *)secPicker didSelectRow:(NSInteger)row inComponent (NSInteger)component { 
 [self EVsliderChanged: (float)EVslider.value ];
}

I’m sure I’m doing something n00bishly wrong, could someone please explain whats going wrong and give me an example of how to do it right.

Thanks

  • 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-15T13:49:34+00:00Added an answer on May 15, 2026 at 1:49 pm

    EVsliderChanged: method expects UISlider as paramater, not its value – so your call should be

    [self EVsliderChanged:EVslider ];
    

    And slider’s value to be retrieved inside the method.

    P.S. Note also that method and ivar names in objective-c usually start with lower case – just a convention, but still…

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

Sidebar

Related Questions

I trying to call some ejb bean method from tread. and getting error :
i am trying to call a method from a wsdl and getting an error.
I'm trying to call an wcf self hosted method from jquery but, i'm aways
I'm trying to call a return type method from another class but I keep
I'm trying to call method from .jar But when I want to declare array
I'm trying to call a method from another class with a simple button in
I am trying to call my Javascript method from my java in GWT below
Im trying to call a method that will add or subtract 1 from a
i am trying to call a navite method defined in c++ from java, the
I am trying to make a call to a Parent class method from a

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.