I want to switch the button text based on clicks - every time the button is clicked, the title will change from textA to TextB and so on. but when I use button.titlelabel.text = @"blabla" but the text remains the same.
button.titlelabel.text = @"blabla"
It is worth a try:
-(IBAction)buttonClickEvent { [button setTitle:@"your title" forState:UIControlStateNormal]; }
- (void)setTitle:(NSString *)title forState:(UIControlState)state
Source: https://habr.com/ru/post/1794414/More articles:Applying a knockout to a completed form without wiping the form data due to an empty viewmodel? - c #appcelerator titanium -TableViewRow selectedBackgroundColor removes rounded corners - javascriptЗапись в файл с Groovy (Grails) не выполняется для некоторых строк (ломаные строки) - fileGroovy mocking File Constructor, check record in newly created files - javaRemoving duplicates from an array using C # .NET 4.0 LINQ? - c #Java, removing backslash in a string object - javaIs it possible to start a stored procedure automatically without sql sever agent? - sqlВыполнение тех же тестов с различными конфигурациями - pythonIs Orchard the right CMS for this project? - c #Перенаправление вывода "nunit-console" в окно вывода Visual Studio - visual-studio-2010All Articles