I have ten (x,y) coordinates values in NSInteger array. //Yet to implement
I want to add a series (10 array) of UIView on another bigger UIView .
[self.myBiggerView addSubview:mySmallView];
I am not getting how to add mySmallView at a specific (my coordinate array) coordinate. Please help
Either after or before
[self.myBiggerView addSubview:mySmallView];
Set the frame of your small view like this:
mySmallView.frame = CGRectMake(coord1,coord2,width,height);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.