问题标签 [foundation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
objective-c - 对象和 NSObject 的区别
我正在学习 Objective-C,正如我所看到的,在一些教程中他们使用 Object(从 objc/Object.h 导入),而在其他教程中我看到了 NSObject(从 Foundation/NSObject.h 导入)的使用,但是什么是它们之间的主要区别是什么?
问候。
iphone - NSArray of Dates 排序
考虑这个数组。它没有键,所以我不确定我是否可以使用 NSSortDescriptor。对它们进行排序的最佳方法是什么?
objective-c - 关于基金会和 NS 图书馆的问题
我是一名 Objective-C 学习者并且我没有 Mac,那么我需要将我的 Linux 与 GNUStep 一起使用,但如果我在其上开发自己的程序,最终用户将需要拥有 GNUStep(如 .Net ) 安装,然后我开始思考如何解决这个问题,然后我有了一个想法:“从头开始创建这个!”,但现在要做到这一点,我需要知道:NS 和 Foundation 标头中最重要的东西是什么?谢谢。
objective-c - 在苹果的私有头文件中给出下划线的原因是什么
我见过很多苹果的 .h(私有 API)。大多数变量/结构/枚举/类都有 _ 作为前缀。
我的问题是,
用正确的下划线和 typedef 再次给出它们的原因是什么?
objective-c - 基础框架和核心基础框架之间的区别?
我试图掌握它,但现在两者对我来说似乎是一样的。然而,Xcode 允许创建一个控制台应用程序,可以选择使用“Core Foundation”或“Foundation”。也许有人可以指出差异。
objective-c - Why does -isMemberOfClass: not work here?
I get always "NO!!" in console. I tried with Array, NSNumber, NSString. All of them don't seem to work. That's strange. As I get it from the docs, this method should return YES if I test agains the class of the object which is subject of the testing. I'm using the Foundation.h, not Core Foundation (if it makes any difference anyways).
objective-c - 基础功能的内存管理指南
虽然基础类的内存管理是一致的并记录在案,但我惊讶地发现(通过友好的EXC_BAD_ACCESS
)Foundation 函数,例如,NSStringFromSelector()
似乎返回指向常量存储的指针——至少在函数的文档中没有提到。
这种行为是否记录在某处?有没有一致的指导方针?
identity - Finding STS providers for Windows Identity Foundation
I've had a very brief look at Windows Identity Foundation (WIF) and it looks to me like I could say that my site is going to accept logins from other sites. e.g. anyone with a gmail or LiveID account will be able to post comments on a thread in my application. When the post comment button is clicked the user is redirected to a provider and they log in there, after which they are authorized on my site to post.
How can I find out who offers the STS mechanism and what the URL is to feed into WIF?
I've found the LiveID through a bit of googling but if I wanted to find the Facebook service, or Yahoo etc how do I go about it? Searching for STS providers and its various incantations isn't turning up too much.
Many thanks
The beta has been released fairly recently which includes a few STS providers for things like google and facebook for anyone that views this later
ios - 如何获取在 UIWebView 中显示的 HTML 页面的标题?
我需要从 UIWebView 中显示的 HTML 页面中提取标题标签的内容。这样做的最强大的方法是什么?
我知道我可以做到:
但是,这仅在启用 javascript 时才有效。
或者,我可以只扫描标题的 HTML 代码文本,但这感觉有点麻烦,并且如果页面的作者对他们的代码感到奇怪,可能会变得脆弱。如果涉及到这一点,在 iPhone API 中处理 html 文本的最佳方法是什么?
我觉得我忘记了一些明显的事情。有比这两种选择更好的方法吗?
更新:
从这个问题的答案开始:UIWebView: Can You Disable Javascript? 似乎没有办法在 UIWebView 中关闭 Javascript。因此,上面的 Javascript 方法将始终有效。
objective-c - 在开始编写我的下一个 iPhone 应用程序之前需要一些建议
我需要一些关于如何开始编写代码的建议。
所以这里是上下文:我刚刚构建了一个管理 SQLite 数据库的 CMS。我的应用程序将选择此数据库并将其内容用作应用程序的内容。到目前为止,这很简单。
该应用程序将有一个导航,可以浏览各种工作流程,一旦工作流程结束,它将显示数据库中的内容。一种咨询,例如:液体 -> 果汁 -> 橙汁 -> 橙汁信息。
对于我的 SQLite 事务,到目前为止,我相信我将使用 fmdb。它看起来像一个很棒的包装纸。
这是来自其中一个数据库的简单模式:
该表的行将是我的导航。你认为我应该使用导航控制器吗?如果是这样,那么我如何从中生成导航树?
我对 Objective-C 和 Foundation 框架有很好的工作知识,但从来没有走得太远,所以这就是为什么我在开始错误的方向之前要问:)
非常感谢。