Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
3 Answers
![Ryan Ackermann](https://uploads.teamtreehouse.com/production/profile-photos/1164392/micro_Me.jpg)
Ryan Ackermann
14,665 PointsWell instead of giving you the answer, lets look at how to create a method with a void return type.
- (void) thisMethodIsATest {
NSLog(@"Test");
}
Notice that the - (void) section of the method denotes it as a voided method, or a method without a return type.
I hope this helps :)
![Meek D](https://secure.gravatar.com/avatar/94fdda16595a92ad4a12f0612e6bcaea?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Meek D
3,457 Pointsif you are saying like in this example - (IBAction)button:(id)sender { } it doesnt return anything ,you just assign the button do an action Ben Howell
![Ryan Ackermann](https://uploads.teamtreehouse.com/production/profile-photos/1164392/micro_Me.jpg)
Ryan Ackermann
14,665 PointsActually IBAction is the return type in your example :)
![Meek D](https://secure.gravatar.com/avatar/94fdda16595a92ad4a12f0612e6bcaea?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Meek D
3,457 PointsRyan ackermanm you right
![kerdeseverin](https://secure.gravatar.com/avatar/f4f1011b5afc9dfbc128a1709101271a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
kerdeseverin
9,688 Points(IBAction)button:(id)sender { }
- It takes in the sender ( basically whoever triggered the method)
- It returns IBAction ( the type of action that took place e.g touch up inside)