我的2015最后一个挣扎月~~~~

来源:互联网 发布:软件售后服务合同 编辑:程序博客网 时间:2024/04/28 22:56

极光推送



iOS极光推送 点击推送消息跳转页面


http://www.jianshu.com/p/eaf07c4372a8


微信分享

title ,content,url 是必须的

各个平台的登录,分享必须填写信息,并且和shareSDK后台对应一致。

12-14 

更新Xcode后,运行,模拟器报错,解决办法

http://www.bubuko.com/infodetail-913678.html

12-21

1.。。修改alertview的字体颜色

[UIView appearance].tintColor=kUIColorFromRGBWithAlapha(125, 195, 77, 1);

2。。 App的设置 swift

if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) {
    UIApplication.sharedApplication().openURL(appSettings)
}


3.使用plain类型tableview时,headerview不一起滑动问题解决

//取消tableviewheaderview的粘滞度

-(void)scrollViewDidScroll:(UIScrollView *)scrollView

{

    CGFloat sectionHeaderHeight =44;

    if (scrollView.contentOffset.y <= sectionHeaderHeight && scrollView.contentOffset.y >= 0) {

        scrollView.contentInset =UIEdgeInsetsMake(-scrollView.contentOffset.y,0,0,0);

    }elseif (scrollView.contentOffset.y >= sectionHeaderHeight)

    {

        scrollView.contentInset =UIEdgeInsetsMake(-sectionHeaderHeight,0,0,0);

    }

}

4.控制cell 最多选择两项效果

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

    [tableView deselectRowAtIndexPath:indexPathanimated:YES];

    cunArray = [NSMutableArrayarray];

    UITableViewCell *cell = [tableViewcellForRowAtIndexPath:indexPath];

    

    if (indexArray.count ==2) {

        

        if ([indexArraycontainsObject:[NSStringstringWithFormat:@"%ld", indexPath.row]]) {

            [indexArrayremoveObject:[NSStringstringWithFormat:@"%ld", indexPath.row]];

            //            [indexArray removeObject:[NSString stringWithFormat:@"%ld", indexPath.row]];

            cell.accessoryType =UITableViewCellAccessoryNone;

        }else

        {

            NSIndexPath *indexPath1 = [NSIndexPathindexPathForRow:[indexArray[0]intValue]inSection:0];

            

            UITableViewCell *cell1 = [tableViewcellForRowAtIndexPath:indexPath1];

            cell1.accessoryType =UITableViewCellAccessoryNone;

            [indexArrayremoveObjectAtIndex:0];

            

            //            [indexArray removeObject:[NSString stringWithFormat:@"%ld", indexPath.row]];

            [indexArrayaddObject:[NSStringstringWithFormat:@"%ld", indexPath.row]];

            cell.accessoryType =UITableViewCellAccessoryCheckmark;

            

        }

    }else

    {

        if ([indexArraycontainsObject:[NSStringstringWithFormat:@"%ld", indexPath.row]]) {

            [indexArrayremoveObject:[NSStringstringWithFormat:@"%ld", indexPath.row]];

            //            [indexArray removeObject:[NSString stringWithFormat:@"%ld", indexPath.row]];

            cell.accessoryType =UITableViewCellAccessoryNone;

            

        }else

        {

            [indexArrayaddObject:[NSStringstringWithFormat:@"%ld", indexPath.row]];

            //        [indexArray addObject:[NSString stringWithFormat:@"%ld", indexPath.row]];

            cell.accessoryType =UITableViewCellAccessoryCheckmark;

        }

    }

    for (NSString * INDEXinindexArray) {

        NSString *roomStr =roomArray[[INDEXintValue]];

        [cunArrayaddObject:roomStr];

    }

}

12-22
在企业证书更新后,打包报错
Signing Identity:     "iPhone Distribution: Blove Ambiton Beijing Technology Co.,Ltd."
Provisioning Profile: "LongwanTest"
                      (8fbd0b45-5d73-49af-88bb-e3d6786baaf6)


    /usr/bin/codesign --force --sign CD6F01B49DA1F1D34DE29D946A0FDF2AFC6633D5 --entitlements /Users/lanlingaaa/Desktop/龙湾物业/LongwanProperty/Build/Intermediates/ArchiveIntermediates/LongwanProperty/IntermediateBuildFilesPath/LongwanProperty.build/Release-iphoneos/LongwanProperty.build/LongwanProperty.app.xcent --timestamp=none /Users/lanlingaaa/Desktop/龙湾物业/LongwanProperty/Build/Intermediates/ArchiveIntermediates/LongwanProperty/InstallationBuildProductsLocation/Applications/LongwanProperty.app


CD6F01B49DA1F1D34DE29D946A0FDF2AFC6633D5: no identity found
Command /usr/bin/codesign failed with exit code 1

注意需要把原来描述文件的名字改一下,因为更新后并没有替换掉原来的;

这样操作后,还是报错,说没有找到匹配的描述文件,什么UDIDD ,原来是证书没有安装到Xcode成功,需要仔细观察,才可以发现选择
Code signing identity 时候,如果出现两部分,就是没安装成功,只有出现一个部分的时候才成功了。
最后,还要一步操作,http://my.oschina.net/u/2344008/blog/424731?p={{currentPage+1}}来设置Xcode。
完美~~~~

12-24
今天是平安夜,希望明年父母,姐姐和身边的朋友平平安安~~~


iOS9 网络请求需要配置Xcode,添加 App Transport Security Settings(dictionary) ————> Allow Arbitrary Loads(key),改为yes


12-29

IOS 开发中判断字符串是否为空字符的方法

- (BOOL) isBlankString:(NSString *)string {

    if (string == nil || string == NULL) {

        return YES;

    }

    if ([string isKindOfClass:[NSNull class]]) {

        return YES;

    }

    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {

        return YES;

    }

    return NO;






0 0
原创粉丝点击