Skip to content

Commit

Permalink
update readme and example
Browse files Browse the repository at this point in the history
  • Loading branch information
nsnull0 committed Jul 11, 2017
1 parent c63e1cb commit 6b6142b
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 56 deletions.
27 changes: 21 additions & 6 deletions Example/ExampleYWProfile/ExampleYWProfile/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ViewController: UIViewController {

let namePlaceHolder:YWNamePlaceHolder = YWNamePlaceHolder(originLocation: CGPoint(x: 0, y:0), _withSize: 60, _yourPlaceholder: "", _fontPlaceHolder: UIFont.boldSystemFont(ofSize: 10))

namePlaceHolder.debugListFontDevice()
let _ = namePlaceHolder.debugListFontDevice()



Expand All @@ -48,14 +48,29 @@ extension ViewController: UITableViewDelegate, UITableViewDataSource{

cell!.textLabel!.text = nameList[indexPath.row]

let namePlaceHolder:YWNamePlaceHolder = YWNamePlaceHolder(originLocation: CGPoint(x: 0, y: 0), _withSize: 50, _yourPlaceholder: nameList[indexPath.row], _fontPlaceHolder: UIFont.boldSystemFont(ofSize: 14.0))
cell!.accessoryView = namePlaceHolder
var namePlaceHolder:YWNamePlaceHolder?


if indexPath.row == 4 {
namePlaceHolder = YWNamePlaceHolder(originLocation: CGPoint(x: 0, y: 0), _withSize: 50, _yourPlaceholder: nameList[indexPath.row], _fontPlaceHolder: UIFont.boldSystemFont(ofSize: 14.0), _constraintTextResultCount: 1)
cell!.accessoryView = namePlaceHolder



}else{
namePlaceHolder = YWNamePlaceHolder(originLocation: CGPoint(x: 0, y: 0), _withSize: 50, _yourPlaceholder: nameList[indexPath.row], _fontPlaceHolder: UIFont.boldSystemFont(ofSize: 14.0))
cell!.accessoryView = namePlaceHolder


}



if indexPath.row == 6 {
namePlaceHolder.setColor(_textColor: .black, _contentColor: .yellow)
namePlaceHolder!.setColor(_textColor: .black, _contentColor: .yellow)
}else if (indexPath.row == 5){
namePlaceHolder.setFont(_textFont: UIFont.init(name: "DamascusBold", size: 10)!)
namePlaceHolder.setFontSize(_staticFontSize: 8.0)
namePlaceHolder!.setFont(_textFont: UIFont.init(name: "DamascusBold", size: 10)!)
namePlaceHolder!.setFontSize(_staticFontSize: 8.0)
}

return cell!
Expand Down
4 changes: 2 additions & 2 deletions Example/ExampleYWProfile/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- YWNamePlaceholder (0.1)
- YWNamePlaceholder (1.2)

DEPENDENCIES:
- YWNamePlaceholder (from `~/Documents/Github/YWNamePlaceholder`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "~/Documents/Github/YWNamePlaceholder"

SPEC CHECKSUMS:
YWNamePlaceholder: 4ef048d06eca62a2a0d2581144019da90f6b065d
YWNamePlaceholder: d086df98e3e52d4af0219689d55b1ec2623881ad

PODFILE CHECKSUM: '099e70268e8db467508e0ad7e23d13f4330e1e5d'

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/ExampleYWProfile/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6b6142b

Please sign in to comment.