How to disable cell interaciton in UITableView
If you don’t want your cell to be highlighted you can de-select the option “User Interaction Enabled” in the storyboard. This is ticked by default. Untick it and nobody can select your cell anymore.
If you don’t want your cell to be highlighted you can de-select the option “User Interaction Enabled” in the storyboard. This is ticked by default. Untick it and nobody can select your cell anymore.
First we make the cell’s background transparent. Next we create a custom view which we can show behind the cell, like so: cell.backgroundColor = [UIColor clearColor]; UIView *backView = [[UIView alloc]initWithFrame:CGRectZero]; backView.backgroundColor = [UIColor clearColor]; cell.backgroundView = backView;
You can conveniently rename an app you’ve started. For this example, we have a project called Old Project, created from the Master/Detail Template. Three areas need to be changed here: the actual app name and targets the scheme the group in which most project files reside Renaming the app Click on the blue Project, wait […]
You can set simply set your UIBarButtonItem to nil, like so:
self.navigationItem.rightBarButtonItem = nil;
exit (0); will do the trick. Shutdown happens immediately. If you do this in a live app it’s probably a good idea to let the user know and wait for a button click, or perhaps integrate a timer before the shutdown occurs.
Great tutorial on how to implement In App Purchases:
http://www.raywenderlich.com/21081/introduction-to-in-app-purchases-in-ios-6-tutorial
You can use the backgroundColor property for this: self.yourView.backgroundColor = [UIColor purpleColor]; Pre-defined values are blackColor darkGrayColor lightGrayColor whiteColor grayColor redColor greenColor blueColor cyanColor yellowColor magentaColor orangeColor purpleColor brownColor clearColor You can also define your own colours by creating a UIColor object (from RGB or HSL values). Here’s how you can create your own RGB […]
NSDate *date = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; [dateFormatter setDateStyle:NSDateFormatterLongStyle]; [dateFormatter setTimeStyle:NSDateFormatterLongStyle]; NSString *dateString = [dateFormatter stringFromDate:date]; First we’ll create a date object. Next we’ll create an NSDateFormatter and set how we’d like for display our date (and optionally our time). Then we’ll call the magical stringFromDate method which will create our string.