拼图APP
发表于|更新于
|浏览量:
背景
建设银行龙卡信用卡小程序有个拼图小游戏,如下图所示,感觉挺好玩的
于是就试着做了一个APP版出来,简单有趣,给小孩玩耍再好不过了,开源出来,欢迎大家感兴趣的自己运行到手机上体验。
Github地址: 拼图
最终效果如下:

文章作者: 今是昨非
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 今是昨非的博客!
相关推荐
2021-07-15
weak的实现原理
weak的实现原理
2023-03-22
iOS推送播放语音播报更新
iOS推送播放语音播报更新接上篇如何让iOS推送播放语音,之前的结论是iOS如果需要送审商店只能播放本地的mp3文件,这里更新一下: 更新语音的播放,最终调用的方法是UNNotificationSound(named: xxx),而这个方法官方文档注释如下: 12// The sound file to be played for the notification. The sound must be in the Library/Sounds folder of the app's data container or the Library/Sounds folder of an app group data container. If the file is not found in a container, the system will look in the app's bundle. public convenience init(named name: UNNotificationSoundName) 注释里说,语音文件会从这三个地方...
2021-08-30
iOS 在文件中访问 Document Directory
iOS 在文件中访问 Document DirectoryiOS 11之后,在 Plist 中设置LSSupportsOpeningDocumentsInPlace为 YES,且UIFileSharingEnabled为 YES,可以从系统的Files应用中访问应用的 Documents 目录。 如下: 从系统的文件打开,查看我的 iPhone如下,开启了此功能的应用可以从这里面看到 注意:此目录是 APP 的Documents目录,所以 APP 删除后,目录就消失了。 参考: iOS文件共享
2021-12-30
iOS 录音 && 播放实现
录音代码录音转 mp3录音播放播放播放锁屏通知栏显示背景问题获取录音时长的问题参考iOS 获取音频时长的正确姿势 笔记,获取音频时长,有两个问题: 录音的 http 链接经过了一次封装,且需要 token 才能获取,这种情况下获取不到 录音的链接,下载保存到系统的 cache 文件夹下 1234567891011121314- (NSTimeInterval)audioDurationFromURL:(NSString *)url { AVURLAsset *audioAsset = nil; NSDictionary *dic = @{AVURLAssetPreferPreciseDurationAndTimingKey:@(YES)}; if ([url hasPrefix:@"http://"]) { audioAsset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:url] options:dic]; }...
2022-04-20
iOS 长截图
iOS长截图背景Twitter 上看到TaioApp的作者说,iOS 系统有支持长截图的API——UIScreenshotService,从 iOS 13开始就可以使用,下午的时候就在自己的 APP 中体验了一下。 过程UIScreenshotService官方的说明如下: When the user takes a screenshot of your app’s content, you work with a UIScreenshotService object to provide a PDF version of that screenshot. You do not create a UIScreenshotService object directly. Instead, you retrieve the object from the screenshotService property of your window scene and assign a delegate to it. When the user takes a screenshot, UI...
2024-08-17
FirebaseFunctionError 处理
背景做一个 Firebase 相关的项目,其中创建用户的时候,用的是Cloud Functions,调用的时候一直报错,错误信息只有”INTERNAL”。 Deploying Function Error on Cloud Function with error code 13 and Message “INTERNAL” 排查步骤网上搜索之后,有说字段不对应的,有说调用方式不对的,但是尝试后把这两个原因都排除了。 然后去 Firebase 的 Console 中查看,找到 Function,再找到调用的函数名字,点击右侧的竖三角,查看详细信息,发现里面错误信息为空。不要急,点击顶部 Tab,切换到 日志 下,然后从日志中查看报错信息,就能看到调用这个函数哪里报错了。具体步骤的截图如下:
公告
This is my Blog