Hey, I want to display an activity indicator in the right corner of my navigation bar when my user changes the selection on the selection wheel. I have no idea how to add an activity indicator there. I can only add the usual navigation buttons there. Any help? Thanks in advance!
UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:activityIndicator]; [[self navigationItem] setRightBarButtonItem:barButton]; [barButton release]; [activityIndicator startAnimating];
That should work. From: http://iosdevelopertips.com/user-interface/adding-an-activity-indicator-spinner-to-navigation-bar.html
Source: https://habr.com/ru/post/1778175/More articles:R depending on the values - rFree space in MySQL after deleting tables and columns? - sqlОбработка ошибок с помощью WCF с поддержкой Javascript? - javascriptHow to declare a foreign key with an OR clause using Oracle? - sqlCreating a dynamic Linq query based on property values - c #Как объявить и инициализировать этот массив структур на C, когда длина неизвестна до времени выполнения? - cCan you publish a file and resource at the same time in OpenRasta? - resthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1778178/git-command-to-see-if-repository-has-changed-no-diff&usg=ALkJrhiGM2w8C46270F0fxmB0OFZMgBTYwHow to achieve transparent BackColor on a WinForms source control? - controlsAdding a TrackBar Control to ContextMenu - c #All Articles