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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:18:19+00:00 2026-05-23T11:18:19+00:00

-(void)rotateView:(id)sender { CGAffineTransform rotateTransform = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI); [sender setTransform:rotateTransform];//the error is shown here }

  • 0
-(void)rotateView:(id)sender {
CGAffineTransform rotateTransform = CGAffineTransformRotate(CGAffineTransformIdentity, M_PI);
[sender setTransform:rotateTransform];//the error is shown here
}

I am getting this caution error that shows up and says Multiple methods named -setTransform: found. It only shows up when I have #import AVFoundation/AVFoundation.h in my header file. Any suggestions? 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-23T11:18:20+00:00Added an answer on May 23, 2026 at 11:18 am

    Cast sender to the proper class type and the warning should go away:

    [(YourClassHere *)sender setTransform:rotateTransform];
    

    As sender is passed to rotateView: as type id Xcode cannot know what actual class type it is and by that which method to call.

    Edit: Coincidentally just today Matt Gallagher of Cocoa With Love fame published an article about all kinds of issues caused by calling an ambiguous method on id in Objective-C.

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

Sidebar

Related Questions

void mi_start_curr_serv(void){ #if 0 //stmt #endif } I'm getting an error as error: expected
void (int a[]) { a[5] = 3; // this is wrong? } Can I
void dataGridView1_DragDrop(object sender, DragEventArgs e) { object data = e.Data.GetData(typeof(string)); MessageBox.Show(e.X + + e.Y
void main() { const int * a; *a = 5; } gcc error :
void Connection::Receive(){ socket_.async_read_some(boost::asio::buffer(read_buffer_), boost::bind(&Connection::handle_Receive, shared_from_this(),boost::asio::placeholders::error)); } void Connection::handle_Receive(const boost::system::error_code& error) { if(!error) { if(read_buffer_.size()
- (void)main { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; // Warning goes here NSRunLoop
void getThisAlert(String Title, Displayable txtagency2) { Alert error = new Alert(, Title, null, AlertType.INFO);
void test() { int buf[1000]; //populate buf foo(buf);//is this correct? Can we pass buf
void gridControl1_DoubleClick(object sender, EventArgs e) { GridControl grid = sender as GridControl; DXMouseEventArgs args
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { @try { if ([segue.identifier isEqualToString:@taskListSegue]) { MindMapInformationViewController_iPhone *taskListContentController =

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.