How to add new xib files

(Assuming XCode 4) In the “File -> New File…” menu dialog, there is a subsection called “User Interface.” You will notice in the description of each of the sub-items, it says “An Interface Builder Document.” Those are various types of nibs. If you’re creating a new ViewController specifically, you can also choose the “Cocoa Touch” … Read more

How to load custom cell ( xib) in UICollectionView cell using swift

Here is what you can do, Change your MyCustomView class to be a subclass of UICollectionViewCell and not UIView. Remove override init(frame : CGRect),required init?(coder aDecoder: NSCoder),func xibSetup(),func loadViewFromNib() -> UIView from MyCustomView I seriously could not understand how are you using your setter and getter for mytitleLabelText and myCustomImage. If its of no use … Read more

Swift – How creating custom viewForHeaderInSection, Using a XIB file?

The typical process for NIB based headers would be: Create UITableViewHeaderFooterView subclass with, at the least, an outlet for your label. You might want to also give it some identifier by which you can reverse engineer to which section this header corresponds. Likewise, you may want to specify a protocol by which the header can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)