objective c - How I can flip the collection view for RTL in ios? -
i have collection view of 2 columns , 3 rows. have button change language of whole app english arabic. wanted flip collection view .
i have flipped view (means columns swapped ) cell got reversed . can tell me how can reverse cells of collection view ?
my code flipping collection view :
[self.dashboardcollectionview settransform:cgaffinetransformmakescale(-1, 1)];
yes possible without transformation of collection view can flip view , based on subview of view flip , can give support rtl. must need give trilling , leading constraints horizontally.
semanticcontentattribute property work flip view programmatic , storyboard. can use forcelefttoright , forcerighttoleft according requirement.
Comments
Post a Comment