override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
let path = self.tableView.indexPathForSelectedRow
segue.destinationViewController.detail = self.detailForIndexPath(path)
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $(dirname "$(which npm)") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read path | |
do | |
if [ -f "$path" ]; then | |
echo "Pruning $path.." | |
brew prune “$path” | |
else | |
echo "$path not found" | |
fi | |
done < "$1" |
###swift
$ curl https://raw.githubusercontent.com/github/gitignore/master/Swift.gitignore -o .gitignore
###objective-C
$ curl https://raw.githubusercontent.com/github/gitignore/master/Objective-C.gitignore -o .gitignore
- Most sites tell you only two steps avobe, but that's not enough to rename evrything. Since the original project name also exsists in .phxproj file and .xcuserstate file, you cannot modify these files from Xcode.
- To solve the problem, you can use grep command.
When you create a tableCell object for each row all you have to do is call dequeueReusableCellWithIdentifier on your tableView object. But this approach is only aviable when you work with storyboar. If you want to use a fully code-based cell class and one from .xib file, you need to register these identifiers to your tableView object.
self.tableView.registerClass(<YourCellClass.self, forCellReuseIdentifier: "Cell")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categories": [ | |
"Decorative Trays & Bowls", | |
"Electronics", | |
"Other Dresses", | |
"Pants", | |
"Musical Instruments", | |
"Shirts", | |
"Tabletop", | |
"Other Lighting", |
NewerOlder