[Solved] Change UIButton’s default titleColor

Use appearance as you do for setting global appearance (all buttons) and instance method [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal]; for setting a color just for one button. 3 solved Change UIButton’s default titleColor

[Solved] Loading data on UITableView up scroll

Use a UIRefreshControl – (void)viewDidLoad { [super viewDidLoad]; self.title = @”News Feed”; self.allNewsEntries = [NSMutableArray array]; [self downloadNewsEntries]; UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(refreshContent) forControlEvents:UIControlEventValueChanged]; self.refreshControl = refreshControl; } -(void) refreshContent { [self.allNewsEntries removeAllObjects]; [self downloadNewsEntries]; [self.refreshControl endRefreshing]; } solved Loading data on UITableView up scroll

[Solved] Display Alert if tableView has no Results

You cannot check the row count in viewDidAppear because an asynchronous NSURLConnection is used to fetch the JSON data that populates the table view. The correct way is to call reloadData in connectionDidFinishLoading, after you have updated your data source with the response from the URL request. At that point you know if the number … Read more

[Solved] Singleton class with instance variable and methods in Swift (iOS)

i got the solution, when i tried this, worked fine! class ABC_Util { var doesValueExists:Bool = false var arrValues:NSMutableArray? = nil class var sharedInstance: ABC_Util { struct ABC_UtilSingleton { static let instance = ABC_Util() } return ABC_UtilSingleton.instance } init() { self.doesValueExists = self.checkValueExists() self.arrValues = self.getArrayOfValues() } //method internal func checkValueExists()-> Bool { //return true/false … Read more