mirror of
https://github.com/zhigang1992/redpotion.git
synced 2026-01-12 17:43:23 +08:00
Merge pull request #88 from infinitered/collection-view-clarification
The comment was confusing that it was just that one method.
This commit is contained in:
@@ -25,11 +25,6 @@ class <%= @name_camel_case %>Screen < UICollectionViewController
|
||||
end
|
||||
end
|
||||
|
||||
# Remove the following if you're only using portrait
|
||||
def will_animate_rotate(orientation, duration)
|
||||
reapply_styles
|
||||
end
|
||||
|
||||
def numberOfSectionsInCollectionView(view)
|
||||
1
|
||||
end
|
||||
@@ -51,4 +46,8 @@ class <%= @name_camel_case %>Screen < UICollectionViewController
|
||||
puts "Selected at section: #{index_path.section}, row: #{index_path.row}"
|
||||
end
|
||||
|
||||
end
|
||||
# Remove the following if you're only using portrait
|
||||
def will_animate_rotate(orientation, duration)
|
||||
reapply_styles
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user