- 博客(16)
- 资源 (4)
- 收藏
- 关注
原创 Swift项目真机调试报错dyld: Library not loaded: @rpath/libswiftCore.dylib
解决问题的网址:stackoverflow使用Xcode7.3 真机运行 swift 项目的时候报错:dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /var/containers/Bundle/Application/xxx/abc.app/abc Reason: no suitable
2016-06-08 09:37:00 2270
原创 iOS Plus屏幕 AlerController报错
使用UIAlertController 在6P/6sP屏幕时报错2016-06-02 10:03:27.023 app[1581:584039] the behavior of the UICollectionViewFlowLayout is not defined because:2016-06-02 10:03:27.023 app[1581:584039] the item heig
2016-06-02 10:40:01 559
原创 iOS限制textfield输入两位小数逻辑思维步骤记录(Swift)
先贴代码,逻辑思维在下面。import UIKitclass ViewController: UIViewController ,UITextFieldDelegate{ var textField:UITextField! var isFirst = true var rangePoint:NSRange! override func
2016-03-14 11:00:31 1730
原创 Swift监听屏幕旋转
NSNotificationCenter.defaultCenter().addObserver(self, selector: "receiverNotification", name: UIDeviceOrientationDidChangeNotification, object: nil)func receiverNotification(){ let orie
2016-03-07 16:32:57 4000
原创 iOS3D-Touch开发之Home Screen Quick Actions(Swift)
func creatShortcutItem() { let item1 = UIApplicationShortcutItem(type: "Shortcut1", localizedTitle: "搜索", localizedSubtitle: "此处可以搜索", icon:UIApplicationShortcutIcon(type: UIApplicationShortcu
2016-03-04 17:50:49 538
原创 iOS3D-Touch开发之Home Screen Quick Actions(Ocjective-C)
通过主屏幕的应用Icon,我们可以用3D Touch呼出一个菜单,进行快速定位应用功能模块相关功能的开发。这是在UIApplicationShortcutItems中添加多个item(静态标签)在Appdelegate.m 中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(N
2016-03-04 17:17:01 492
原创 引用CYLTabBarController记录
github地址:https://github.com/ChenYilong/CYLTabBarController在oc中引用: 创建TabBarViewController在.h文件中:#import #import #import "CYLTabBarController.h"@interface TabBarViewController : NSObject@p
2016-03-04 16:59:54 1820
原创 使用UIAlertController报错
使用UIAlertController报错 Presenting view controllers on detached view controllers is discouraged
2016-01-20 16:29:28 847
原创 xcode7替换SDK个人经验
解决网络问题:在Info.plist中添加NSAppTransportSecurity类型Dictionary。 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES。Build Settings ->Build Options ->Enable Bitcode 设置为NO shareSDK :
2015-11-24 19:52:19 872
原创 iOS限制textfield输入两位小数
//限制输入两位小数- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { NSCharacterSet *cs; if ([textField isEqual:_textFieldM
2015-11-17 17:52:33 527
原创 FMDB使用
创建工程文件FMDBTry本次采用CocoaPods添加FMDB第三方库打开TerminalTerminal:cd 至FMDBTry文件夹内Terminal:pod search 'FMDB'选择合适的第三方库,例如:pod 'FMDB', '~> 2.5'Terminal:touch Podfile打开Podfile 将pod 'FMDB', '~> 2.
2015-11-02 15:33:46 357
原创 一些常用的工具类方法
//字符串文字的长度+(CGFloat)widthOfString:(NSString *)string font:(UIFont *)font height:(CGFloat)height{ NSDictionary * dict=[NSDictionary dictionaryWithObject: font forKey:NSFontAttributeName]; CGR
2015-10-29 14:00:49 409
原创 输出数组内中文字符
使用分类 在.m文件@end 之后加入@implementation NSMutableArray(MyChArr)- (NSString *)descriptionWithLocale:(id)locale{ NSMutableString *strM = [NSMutableString string]; [strM appendString:@"(\n"];
2015-10-26 14:33:05 656
原创 github 初次使用
Git 有三种状态,你的文件可能处于其中之一:已提交(committed)、已修改(modified)和已暂存(staged)。已提交表示数据已经安全的保存在本地数据库中。已修改表示修改了文件,但还没保存到数据库中。已暂存表示对一个已修改文件的当前版本做了标记,使之包含在下次提交的快照中。你可以使用 Git 来获取 Git的升级:$ git clone
2015-10-21 15:51:28 428
原创 基于TarBarController控制器的跳转方法
当前有很多app是基于TarBarController控制器的界面,在学习运用过程中,发现界面的跳转存在问题。这是首页的TableView的cell点击事件实现跳转界面方法。
2015-08-10 15:52:36 438
原创 oc三种传值方式:通知传值,代理传值,block传值
三种传值方式分别为:通知传值,代理传值,block传值通知和代理的区别(重点)1,代理可以给sender返回值;通知不能返回值2,通知代理量小,代理实现步骤比较繁琐3,通知是一对多/一对无的关系; 代理是一对一关系4,通知是一个监听者,效率较低.
2015-07-16 22:25:28 4612
EasyUIImagePickerController
2016-06-13
iOS多级列表demo
2015-10-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人