![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
我行我素2018
TO BE OR NOT TO BE。
土鳖或者不是土鳖。
展开
-
iOS项目编译错误:resource fork, Finder information, or similar detritus not allowed
这种问题一般在改了bundle identifier后出现,解决方法是找到DerivedData目录下该项目的目录,在Terminal命令行里进入这个目录,然后运行:xattr -rc .之后就可以正常编译了。原创 2020-05-31 07:45:47 · 1044 阅读 · 0 评论 -
firebaseUI - introduction
转载方便查阅。有一点要注意:如果遇到以下链接错误:ld: framework not found FBSDKLoginKit for architecture x86_64需要在Podfile里增加这一行来解决:use_frameworks!Easily add sign-in to your iOS app with FirebaseUIFirebaseUI is a library built...转载 2018-02-28 09:13:41 · 460 阅读 · 0 评论 -
firebaseUI - get started
转载方便查阅。Get Started with Firebase Authentication on iOSYou can use Firebase Authentication to allow users to sign in to your app using one or more sign-in methods, including email address and password ...转载 2018-02-28 09:14:31 · 339 阅读 · 0 评论 -
firebaseUI - manage users
转载方便查阅。Manage Users in FirebaseCreate a userYou create a new user in your Firebase project by calling thecreateUserWithEmail:password:completion: method or by signing in a user for the first time usin...转载 2018-02-28 09:15:29 · 183 阅读 · 0 评论 -
firebaseUI - google sign-in
Authenticate Using Google Sign-In on iOSYou can let your users authenticate with Firebase using their Google Accounts by integrating Google Sign-In into your app.Before you beginAdd Firebase to your i...转载 2018-02-28 09:16:15 · 1271 阅读 · 0 评论 -
Firebase Login - Facebook Sign-in
Authenticate Using Facebook Login on iOSYou can let your users authenticate with Firebase using their Facebook accounts by integrating Facebook Login into your app.Before you beginAdd Firebase to your...转载 2018-02-28 09:16:52 · 3917 阅读 · 0 评论 -
Firebase Database setup
Installation & Setup on iOSThe Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform a...转载 2018-02-28 09:17:38 · 283 阅读 · 0 评论 -
Firebase Database Structure
Structure Your DatabaseThis guide covers some of the key concepts in data architecture and best practices for structuring the JSON data in your Firebase Realtime Database.Building a properly structure...转载 2018-02-28 09:27:43 · 282 阅读 · 0 评论 -
firebase database read and write
Read and Write Data on iOSGet a FIRDatabaseReferenceTo read or write data from the database, you need an instance of FIRDatabaseReference:SWIFTOBJECTIVE-C@property (strong, nonatomic) FIRDatabaseRefer...转载 2018-02-28 10:32:23 · 259 阅读 · 0 评论 -
firebase database - work with lists
Work with Lists of Data on iOSGet a FIRDatabaseReferenceTo read or write data from the database, you need an instance of FIRDatabaseReference:SWIFTOBJECTIVE-C@property (strong, nonatomic) FIRDatabaseR...转载 2018-02-28 11:00:40 · 233 阅读 · 0 评论 -
firebase database - offline access
[FIRDatabase database].persistenceEnabled = YES;Persistence BehaviorBy enabling persistence, any data that the Firebase Realtime Database client would sync while online persists to disk and is availab...转载 2018-02-28 11:21:41 · 329 阅读 · 0 评论 -
create firebase dynamic links
Create Dynamic Links on iOSTo create Firebase Dynamic Links, include the Dynamic Links SDK in your app and use theFIRDynamicLinkComponents.url parameter.PrerequisitesFirebase Dynamic Links requires iO...转载 2018-03-03 07:18:55 · 1063 阅读 · 0 评论 -
firebase messaging - topic messaging on iOS
转载方便查阅。Topic Messaging on iOSBased on the publish/subscribe model, FCM topic messaging allows you to send a message to multiple devices that have opted in to a particular topic. You compose topic mess...转载 2018-02-28 09:11:33 · 847 阅读 · 0 评论 -
Firebase Messaging - Receive Messages in an iOS App
转载需要翻墙看的文档,方便查阅。Receive Messages in an iOS AppOnce your client app is installed on a device, it can receive messages through the FCM APNs interface. You can immediately start sending notifications to ...转载 2018-02-28 09:09:28 · 565 阅读 · 0 评论 -
firebase messaging - Register for remote notification
转载需要翻墙看的文档,方便以后查阅。Register for remote notificationsEither at startup, or at the desired point in your application flow, register your app for remote notifications. Call registerForRemoteNotifications ...转载 2018-02-28 09:08:11 · 578 阅读 · 0 评论 -
presentViewController 方法中实现半透明背景效果
最近项目有需求, 需要模态初一个半透明的视图, 好多人都碰到这个问题吧, 在目标视图中设置背景颜色然后发现模态动作结束后变成了黑色或者不是半透明的颜色。所以今天来告诉大家解决方案- (IBAction)Avtion1:(id)sender { TestViewController * testVC = [TestViewController new]; self.d转载 2016-04-29 00:19:10 · 1101 阅读 · 0 评论 -
不用itunes帐号如何打ipa包
xcode 6要求一定要有itunes开发者帐号才能打包,而一旦输入开发者帐号就很容易reset现有的开发证书和发布证书,非常不好用。下面的步骤教大家不需要输入itunes帐号进行打包的方法:1,选择正确的证书进行Archive;2,在Organizer里找到生成的包,右键点击后选择“Show In Finder”;3,打开Terminal,cd到对应的xcarch原创 2016-04-21 17:11:36 · 458 阅读 · 0 评论 -
使用 iCloud API 的正确姿势
iCloud 自从随着 iOS 5 推出以来, 经过几次迭代变得越来越完善。 如果你的 App 需要用到文档存储相关的功能,那么 iCloud Document API 是一个很不错的选择。 相比于其他云存储平台,iCloud 和 iOS 设备高度集成,并且 API 的使用更加便捷。 但同时,它的 API 也存在很多雷区,需要我们格外注意。 我们就来看看使用 iCloud API 的正确姿势吧。转载 2017-11-18 11:26:23 · 3570 阅读 · 0 评论 -
cocos2dx实现翻书效果
转载备用,后面项目需要用。http://blog.csdn.net/goichunhye11/article/details/50825126因为项目需求,需要使用cocos实现3d翻书的效果,刚开始确实没有什么思路,cocos2d做3d的效果这不是开玩笑吗。但是,再难也得做啊,没办法。开始查资料,在百度,google上搜索了好几天,基本把所有的文章都翻遍了,根本没转载 2017-12-08 16:25:12 · 1127 阅读 · 0 评论 -
iCloud的使用方法
转载备用http://blog.csdn.net/leonqiu/article/details/78567600转载自这里:http://www.cocoachina.com/ios/20160817/17382.htmliCloud 自从随着 iOS 5 推出以来, 经过几次迭代变得越来越完善。 如果你的 App 需要用到转载 2017-12-08 16:26:19 · 4521 阅读 · 0 评论 -
Cocos2dx 小技巧(九)现成的粒子特效
转载供以后查询。http://www.cnblogs.com/cxchanpin/p/6884390.html和高中的她 差点儿相同有两三年没见面了吧。下午她正好来泉州。我俩出来一起吃了个饭。怎么说呢,自从高中毕业后我俩的联系就少了非常多。大学期间也就见过两三面吧。现在毕业也快一年了,她已是人妇,而我自己的感情也是经历的长期的稳定与最近的跌宕。事实上那份转载 2017-12-08 16:29:36 · 1460 阅读 · 0 评论 -
admob 广告代码参考 iOS 奖励视频
Request rewarded videoGADRewardBasedVideoAd has a singleton design, so the following example shows a request to load an ad being made to the shared instance:SWIFTOBJECTIVE-C[[GAD转载 2017-12-21 11:36:35 · 1879 阅读 · 0 评论 -
admob 广告代码参考 iOS 弹窗广告
reate an interstitial ad objectInterstitial ads are requested and shown by GADInterstitial objects. The first step in using one is to instantiate it and set its ad unit ID. For example, here's h转载 2017-12-21 11:37:52 · 1087 阅读 · 0 评论 -
admob 广告代码参考 iOS banner广告
lways test with test adsWhen building and testing your apps, make sure you use test ads rather than live, production ads. Failure to do so can lead to suspension of your account.The easiest wa转载 2017-12-21 11:38:42 · 437 阅读 · 0 评论 -
xcode编译错误:xcode codesign failed resource fork, Finder information, or similar detritus not allowed
之前一直成功编译的项目,今天突然出现莫名的错误:xcode codesign failed resource fork, Finder information, or similar detritus not allowed网上查到了解决方案,放在这里供以后参考:http://blog.csdn.net/andypan1314/article/details/53115042转载 2017-12-08 10:51:56 · 393 阅读 · 0 评论 -
cocos2d-x 实现图片平铺的代码
http://blog.csdn.net/dh2442897094/article/details/51233059平铺主要用到了openGL的知识,示例代码如下: Texture2D *texture = Director::getInstance() -> getTextureCache() -> addImage("HelloWorld.png");转载 2018-01-02 09:37:45 · 1175 阅读 · 0 评论 -
详细比较各种for循环的文章
非常详细,原文点这里:Cocoa编程的一个通常的任务是要去循环遍历一个对象的集合 (例如,一个 NSArray, NSSet 或者是 NSDictionary). 这个看似简单的问题有广泛数量的解决方案,它们中的许多不乏有对性能方面问题的细微考虑.对于速度的追求首先,是一个免责声明: 相比其它问题而言,一个 Objective-C 方法转载 2016-04-27 13:10:22 · 566 阅读 · 0 评论