![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
文章平均质量分 61
iteye_16613
这个作者很懒,什么都没留下…
展开
-
IOS设置启动图片
1.在 Assets.xcassets 里 新建 2.选择启动画面支持的系统 3.点击需要图片框中,会出现要求的图片尺寸 最后一步,关联 接下来启动即可 ...2016-03-05 13:57:51 · 92 阅读 · 0 评论 -
[转载]一个ScrollView的例子
// // ViewController.swift // AutolayoutScrollViewInCode // // Created by 张星宇 on 15/12/21. // Copyright © 2015年 张星宇. All rights reserved. // import UIKit import SnapKit let ScreenWi...原创 2016-04-14 23:53:58 · 119 阅读 · 0 评论 -
底部菜单不显示TabBar
试过了 设置 hidesBottomBarWhenPushed 但是不行无效 直接设置 self.tabBarController?.tabBar.hidden 非常麻烦,有的显示,有的页面隐藏,担心忘记还原了 所有有了以下的方法: ...2016-04-14 22:53:52 · 690 阅读 · 0 评论 -
rightview 如何设置左边距
解决办法: 添加一个底部的view let countdownBtn = UIButton.init(frame: CGRectMake(-10, 0, 62, 28)) let rightBackView = UIView.init(frame:CGRectMake(0, 0, 72, 28)) rightBackView.addSubview(countdownBtn) t...2016-04-06 12:04:39 · 275 阅读 · 0 评论 -
swift 保存和清空用户首选项实例
转载:http://blog.csdn.net/gishero/article/details/44132245 import UIKit class ViewController: UIViewController { let KEY_NAME = "inputData" @IBOutlet weak var i...原创 2016-04-04 17:41:32 · 108 阅读 · 0 评论 -
ios 修改UITextView的placeholder的颜色
问题解决地址: http://stackoverflow.com/questions/26076054/changing-placeholder-text-color-with-swift 1.如下图,加入 _placeholderLabel.textColor 2.使用代码 textFld.attributedPlaceholder =NSAttribute...2016-04-01 18:38:41 · 525 阅读 · 0 评论 -
IOS 应用内唯一标识使用
取自 UIDevice.currentDevice().identifierForVendor?.UUIDString 这个值会在删除应用后改变,直接更新不会改变 模拟器上每次也不一样2016-03-26 21:17:36 · 143 阅读 · 0 评论 -
pod 无法连接github所做的尝试,最后都没用
使用 pod install pod update --no-repo-update pod install --no-repo-update pod repo remove master pod setup rm -rf ~/.cocoapods; pod setup 就差放弃用pod,直接拷贝代码了 都没有用,翻了墙,才解决 ...2016-03-13 14:01:16 · 633 阅读 · 0 评论 -
swift 代码打开和关闭一个storyboard 页面
1.在storyboard里创建一个ViewController 2.写入如下代码 print("弹出登录框") let loginViewController = self.storyboard?.instantiateViewControllerWithIdentifier("login_view") as! ...2016-03-12 14:19:25 · 453 阅读 · 0 评论 -
添加一个底部tab bar
1.拖入 storyboard 一个 view controller 2. 连接 tab bar controller 和新的 view controller ,选下面的选项 此时: 在添加一个 tab bar item 到新的viewcontroller 在这里选择 默认图片和 名称 运行效果 ...2016-03-05 16:43:09 · 230 阅读 · 0 评论 -
UIAlertController ios7 下无法运行的问题
在ios8中使用 UIAlertController 当运行在ios7 下出现错误 dyld: Symbol not found: _OBJC_CLASS_$_UIAlertAction 解决办法: 第一步: 设置 General -> Linked Frameworks and Libraries -> add UIKit.fram...2014-08-13 14:23:49 · 71 阅读 · 0 评论