Can’t make URL clickable in UITextView
Check the “Selectable” and “Links” checkboxes in the textview Attributes Inspector:
Check the “Selectable” and “Links” checkboxes in the textview Attributes Inspector:
This is just an IB problem that happens all the time (I’m not sure why). To solve this, simply just resize the table view to the size smaller than the 2nd column, then drag it back to the size you want and the 2nd column will disappear.
I wound up submitting this issue to Apple. Their response was unenlightening, and talking about possible optimizations, updating meta data for new version of Xcode and the like. I tracked 100 versions from clicking off and on the file. As Apple said, it was “optimizing” every time, but each time it simply moved some XML … Read more
You add new category for UIviewController and add this code in .h file – (id)initWithNibNameforIphone4:(NSString *)nibNameOrNil4 NibNameforIphone5:(NSString *)nibNameOrNil5 NibNameforIpad:(NSString *)nibNameOrNilpad bundle:(NSBundle *)nibBundleOrNil; Add this code in your .m file – (id)initWithNibNameforIphone4:(NSString *)nibNameOrNil4 NibNameforIphone5:(NSString *)nibNameOrNil5 NibNameforIpad:(NSString *)nibNameOrNilpad bundle:(NSBundle *)nibBundleOrNil { if (self = [super init]) { self = [self initWithNibName:[self CheckDeviceIphone4:nibNameOrNil4 Iphone5:nibNameOrNil5 Ipad:nibNameOrNilpad] bundle:nibBundleOrNil]; } return … Read more
The leading whitespace is provided by default in iOS 7, even for custom cells. Checkout this property separatorInset of UITableviewCell to remove/add white spacing at either ends of cell’s line separator. // Remove white space cell.separatorInset = UIEdgeInsetsZero; Alternatively, at UITableView level, you can use this property – if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) { // Safety check … Read more
Unicode has several notable examples you can simply copy and paste into a string declaration in Xcode, or use the standard Unicode String Escape (\uxxxx) and iOS is actually quite fluent when it comes to Unicode (I know some of the char’s are fairly ugly, but that’s Unicode for ya’): Unicode Character ‘GEAR WITHOUT HUB’ … Read more
EDIT: Several commenters have claimed that more recent versions of Xcode return IBOutletCollections in the order the connections are made. Others have claimed that this approach didn’t work for them in storyboards. I haven’t tested this myself, but if you’re willing to rely on undocumented behavior, then you may find that the explicit sorting I’ve … Read more
Two points to be remembered: The File owner is the object that loads the nib, i.e. that object which receives the message loadNibNamed: or initWithNibName:. If you want to access any objects in the nib after loading it, you can set an outlet in the file owner. So you created a fancy view with lots … Read more
From the outline view, make sure your Table View Controller is selected. Then go to the Editor menu, and click on the Embed In submenu, and choose Navigation Controller and voila. You have your navigation controller pointing to your tableview controller with a relationship built in.
Much simpler (and more IB based) than previous answers: Just Alt + ENTER It will send a newline to the UITextView.