Questions tagged [foundation]

Foundation is a framework written in Objective-C that implements many useful classes and functions. For the responsive front-end framework Zurb Foundation, please use the tag [zurb-foundation].

Foundation is a framework written in Objective-C that implements many useful classes and functions. Foundation is used by almost any Objective-C application, as it provides memory management and other runtime features, without the need to use the Objective-C runtime API directly.


References

Related Topics

Separate Topics

This topic is often confused with:

941 questions
-2
votes
1 answer

Swift string interpolation produces string that takes very long to insert in a dictionary

Under some conditions, string interpolation produces a string that is way slower to use as a dictionary key than a string produced with String(format:). Take the following code: var map = [String: String]() let start = Date() for _ in 0..<100000 {  …
Nickkk
  • 2,261
  • 1
  • 25
  • 34
-2
votes
1 answer

What is the function of NSRange

I am confused regarding the functionality of NSRange. What is the function of NSRange in this code? shouldChangeTextIn range: NSRange
Amy
  • 109
  • 1
  • 1
  • 5
-2
votes
1 answer

XMLParser splits elements on “ß” character

I have this code in an iOS Playground (Swift 3, Xcode 8.2.1): import UIKit import PlaygroundSupport PlaygroundPage.current.needsIndefiniteExecution = true class ParserDelegate: NSObject, XMLParserDelegate { @objc func parser(_ parser:…
Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82
-2
votes
1 answer

Tab in MVC application using ASP.NET

In my application i have tab at the top of the page which should each render a new page. The tabs are defined in the Layouts file as this will be part of the standard view. Now i have created different views for each of the options e.g. project is…
tjhack
  • 1,022
  • 3
  • 20
  • 43
-3
votes
1 answer

iOS 11. Calendar is counting range of dates too long

One of apps was worked perfectly under iOS 10, but after update to iOS 11, getting strange results, while counting date range over 10 seconds and more: enumerateDates(startingAfter:matching:matchingPolicy:repeatedTimePolicy: direction:using) Does…
Igor Kislyuk
  • 330
  • 1
  • 4
  • 14
-3
votes
1 answer

Create a byte array in Swift 2.2 using an object holding String properties

So lets say I have a class foo with 10 properties all of which are of type String and I want to create a byte array of length 10 like this: let data = NSData(bytes: [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,] as [UInt8],…
Jonathan
  • 614
  • 1
  • 9
  • 18
-3
votes
1 answer

Problems with NSNumber

Hey guys i'm building a tweak for instagram i'm adding a sub preference called instatroll similar to trolltwitter to change the number of followers to any number the user sets (using PSEditTextCell) here is my code so far #import…
-4
votes
1 answer

Example of URLProtocol usage?

I'm trying to figure out how URLProtocol works. Can you provide some cases of URLProtocol usage? What type of problems can it solve?
Alex Yapryntsev
  • 589
  • 6
  • 19
-4
votes
2 answers

Add zero digit to number with NumberFormatter

I have a string let str = "2.1" I want to cast it in Double and always have 2 digits after the separator like that : let double = 2.10 So what I do is : let formatter = NumberFormatter() formatter.decimalSeparator =…
user3722523
  • 1,740
  • 2
  • 15
  • 27
-8
votes
1 answer

How to get data from website

I need to have a variable that contains the text of a label. But the label is in a website in aspx. I try with NSURLSession but i don't understand which method is correct.
AlbertoS
  • 1
  • 3
1 2 3
62
63