Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create uibutton programmatically in objective c?



How to create uibutton programmatically in objective c?..

Answer / Pankaj Kumar Sinha

"To create a UIButton programmatically in Objective-C, follow these steps:n1. Allocate and initialize the button.n```nUIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];n```n2. Set frame to position the button.n3. Add a title or image.n4. Add actions for touch events (e.g., `addTarget:action:forControlEvents:`)."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What does the gc () method?

1 Answers  


What is kvc and kvo? Give an example of using kvc to set value.

1 Answers  


How is string represented in objective-c?

1 Answers  


What is the use of synchronized() block in objective c?

1 Answers  


What is the use of category in objective-c?

1 Answers  


How much does m files cost?

1 Answers  


What is singleton in objective c?

1 Answers  


What is objective c in ios?

1 Answers  


Does objective c support multiple inheritance?

1 Answers  


Explain what is the principle distinction between the function calls and messages?

1 Answers  


How do I open .m files?

1 Answers  


What is id?

1 Answers  


Categories