Hierarchy

6월 6일(수) 스터디

차주 스터디까지 계층구조(Parent, Child)와 상대좌표(max, min, mid, +, -)을 이용하여 이미지 배치하기

스크린샷 2016-06-10 오전 2.32.03

 관련자료는 ‘Nestded ‘로 검색하여 참고할 것.  

Hierarchy

Layers can have a parent and/or children. Parent layers are called superLayers, and child layers are called subLayers. Layers inherit properties from their superLayers. -> 자식레이어는 부모 레이어의 속성들을 상속받는다고함.

 

<iframe width=”420″ height=”315″ src=”https://www.youtube.com/embed/0CccgGhClLQ” frameborder=”0″ allowfullscreen></iframe>

 
# Two ways to define hierarchy 
layerB.superLayer = layerA
layerA.addSubLayer(layerB)

https://dribbble.com/shots/1669228-Shop-360-interaction-app

 

MomLayer = new Layer
	x: 200
	y: 600
	
ChildLayer = new Layer
	width: 50
	height: 50
	backgroundColor: 'red'
	parent: MomLayer
	x: Align.center
	y: Align.center
	
Mom2Layer = new Layer
	x:MomLayer.maxX
	y:MomLayer.y
	backgroundColor: 'Blue'

Child2Layer = new Layer
	name : 'butter'
	width: 50
	height: 50
	x: Mom2Layer.maxX
	y: 0
	backgroundColor: '#fff'


# Mom2Layer.addChild(Child2Layer)
Mom2Layer.addSubLayer(Child2Layer)
print Child2Layer.parent
print Child2Layer.name

# butter.backgroundColor = 'red'
#Child2Layer.superLayer = Mom2Layer



# Two ways to define hierarchy 
# layerB.superLayer = layerA
# layerA.addSubLayer(layerB)

 

“The third guy was the one that stuck with me. And it was also pretty special watching Dave Kopay and Michael Sam kind of take a few moments together. cheap jordan Brock Osweiler has already thrown as many touchdowns in his first season with the Texans (11) as he threw in four years at the BroncosThey will keep looking over their shoulder as the Tennessee Titans (5 5) are a side on the up under second year quarter back Marcus Mariota. We just can stop staring at screens. But Cheap mlb Jerseys at the hearing, Rep. Take him to a doctor or hospital and have them add it to his medical records. Why so hard to leave? Certainly there are the obvious reasons no more cheering crowds; no more special treatment; no more gobs of money. It fits the bolt perfectly and is easy to use. NFL teams draw the bulk of their ticket buying fans from within their own geographic area. Credit first year Hokies head coach Justin Fuente as well: Fuente did wonders for Paxton Lynch at Memphis, and clearly has the Midas touch with Evans.Despite playing for lowly Syracuse, wholesale jerseys china Etta Tawo a senior graduate transfer from Maryland has become the most dominant receiver in big time college football, amassing 51 catches and 876 yards. Edible Screws5. Maybe it’s because I was just happy Chipper was gone. Many different paid golf facility or equipment positions can count as eligible employment, including club fitting and repair, general manager, golf manufacturer sales or management, and of course, golf instructor.. Lay your dress shirt flat and measure from the base of the collar to the hemline for another option. “Schmidt asked if he had any film of when he played in high school or college and Marvin hung his head and said, ‘I didn’t play in high school. So I got to admit: It’s a little awkward coming back Cheap NFL Jerseys in because I’m freshly removed from the competition. In fact, a Cheap nfl jerseys single session of moderate intensity aerobic exercise can NBA Jerseys Cheap lead to a small reduction in post exercise blood pressure lasting up to 22 hours, according to a March 2004 article published in the journal “Medicine and Science in Sports and Exercise.”Regular aerobic exercise has long term sustained effects on blood pressure that both athletes and other physically active adults benefits from. He reeled in 16 catches in the Orange Bowl, helping lift Clemson over Ohio State.. ‘Michael is 35 years old,’ he said. In Chicago, the save they needed.And now they’re 6 6 cheap nfl jerseys and a half game back of the 6 5 Texans. My short term memory was very poor. Charges against Brown were never filed.But the league was aware when it suspended Brown that Molly Brown had told police her husband had abused her more than 20 times in recent years.

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.