Skip to content

Instantly share code, notes, and snippets.

#pragma mark Collection Layout Delegate
-(CGSize)collectionView:(UICollectionView *)collectionView
layout:(UICollectionViewLayout *)collectionViewLayout
sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
NSUInteger item = indexPath.item;
if (item < [self.pageResult.results count] && indexPath.section == 0) {
//------------ 重點 ------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package=".......">
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
.....
android {
.....
buildTypes {
debug {
applicationIdSuffix ".debug"
....
}