开发者

three20 right align

开发者 https://www.devze.com 2023-01-19 20:17 出处:网络
is there a way to right align div tag inside a styled text item in three 20 on iphone?I have accomplished it using the following:

is there a way to right align div tag inside a styled text item in three 20 on iphone? I have accomplished it using the following:

return 

[TTBoxStyle styleWithMargin:UIEdgeInsetsMake(-20, 230, 5, 5) padding:UIEdgeInsetsMake(0, 0, 0, 0) minSize:CGSizeMake(20, 20) position:TTPositionStatic next:nil];

however, this only works in portrait orientation, when i rotate the device into landscape, the div stays statically and does not stay rotated. how开发者_Go百科 can i either keep it right aligned, or get access to the window/view within the stylesheet class to be able to calculate it?

thx Ben

0

精彩评论

暂无评论...
验证码 换一张
取 消