if a prefab is inactive,
the prefab Awake() not called after instantiated.
set gameobject active after instantiating it
or set prefab active.
but you can call your own method in inactive gameobject.
Inactive Gameobject means that there is nothing in unity scene world.
Unity API not called.
Awake(), Start(), Update(), OnCollision() and so on...
2018년 8월 26일 일요일
2018년 8월 9일 목요일
2017년 12월 4일 월요일
UITableView: changing footer view's size programmatically doesn't work
myTable.tableFooterView = myFooterView;
Re-assign your footer view to the table. The table will recognize it has a new footer and re-do whatever layout needs to occur for the proper size of the footer.
https://stackoverflow.com/questions/6672528/uitableview-changing-footer-views-size-programmatically-doesnt-work
Why do headers and footers follow movement of row when deleting it?
https://stackoverflow.com/questions/29942070/why-do-headers-and-footers-follow-movement-of-row-when-deleting-it
Simply return headerCell.contentView instead of headerCell and your problem will be resolved.
2017년 11월 3일 금요일
Dynamically Sized Table View Header or Footer Using Auto Layout
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
// Dynamic sizing for the header view
if let headerView = tableView.tableHeaderView {
let height = headerView.systemLayoutSizeFittingSize(UILayoutFittingCompressedSize).height
var headerFrame = headerView.frame
// If we don't have this check, viewDidLayoutSubviews() will get
// repeatedly, causing the app to hang.
if height != headerFrame.size.height {
headerFrame.size.height = height
headerView.frame = headerFrame
tableView.tableHeaderView = headerView
}
}
}
http://collindonnell.com/2015/09/29/dynamically-sized-table-view-header-or-footer-using-auto-layout/
2017년 10월 22일 일요일
notice: distributing ad hoc ipa
Building adhoc ipa file, You must check "Manually manage signing".
and you just choose its adhoc app provisioning file and certificate
(x) Automatically manage signing
(o) Manually manage signing
and you just choose its adhoc app provisioning file and certificate
(x) Automatically manage signing
(o) Manually manage signing
2017년 10월 20일 금요일
피드 구독하기:
글 (Atom)