Tag: io

56 votes
30 answers
3.1K views
How would I create a UIAlertView in Swift?

I have been working to create a UIAlertView in Swift, but for some reason I can't get the statement right

avatar
Nidia
0 1 0 9
asked 07 September, 2021
59 votes
23 answers
3.1K views
What does an exclamation mark mean in the Swift language?

The Swift Programming Language guide has the following example: class Person { let name: String init

avatar
Keila
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1K views
UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic

avatar
Stacia
0 1 0 9
asked 07 September, 2021
62 votes
22 answers
2.2K views
UITextField text change event

How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for

avatar
Freida
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1.3K views
iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta

This crash has been a blocking issue I used the following steps to reproduce the issue: Create a Cocoa Touch

avatar
Solomon
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
2.8K views
iOS 8 UITableView separator inset 0 not working

I have an app where the UITableView's separator inset is set to custom values - Right 0, Left 0. This wor

avatar
Trudy
0 1 0 9
asked 07 September, 2021
56 votes
16 answers
1.2K views
How to iterate a loop with index and element in Swift

Is there a function that I can use to iterate over an array and have both index and element, like Python'

avatar
Keith
0 1 0 9
asked 07 September, 2021
51 votes
9 answers
2.7K views
Swift Beta performance: sorting arrays

I was implementing an algorithm in Swift Beta and noticed that the performance was very poor. After digging de

avatar
Basil
0 1 0 9
asked 07 September, 2021
55 votes
20 answers
1.8K views
#pragma mark in Swift?

In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C

avatar
Don
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.1K views
How to change Status Bar text color in iOS

My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anyt

avatar
Bryan
0 1 0 9
asked 07 September, 2021
52 votes
30 answers
713 views
Passing data between view controllers

I'm new to iOS and Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a

avatar
Vi
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
2.9K views
Node.js Best Practice Exception Handling

I just started trying out node.js a few days ago. I've realized that the Node is terminated whenever I ha

avatar
Omar
0 1 0 9
asked 07 September, 2021
52 votes
7 answers
971 views
Node.js/Windows error: ENOENT, stat 'C:UsersRTAppDataRoaming pm'

I have Windows 7 32-bit. I installed the latest Node.js 32 bit. When I try to run the command npm install jque

avatar
Margo
0 1 0 9
asked 07 September, 2021
67 votes
23 answers
1.7K views
Where does npm install packages?

Can someone tell me where can I find the Node.js modules, which I installed using npm?

avatar
Sydney
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.6K views
How to fix npm throwing error without sudo

I just installed node and npm through the package on nodejs.org, and whenever I try to search or install somet

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
2.1K views
map function for objects (instead of arrays)

I have an object: myObject = { 'a': 1, 'b': 2, 'c': 3 } I am looking for a na

avatar
Dusty
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
2.4K views
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a pac

avatar
Dusty
0 1 0 9
asked 07 September, 2021
59 votes
17 answers
2.1K views
56 votes
19 answers
2.9K views
What's the difference between tilde(~) and caret(^) in package.json?

After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in t

avatar
Roger
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
904 views
Working with select using AngularJS's ng-options

I have read about it in other posts, but I couldn't figure it out. I have an array, $scope.items = [

avatar
Corrin
0 1 0 9
asked 07 September, 2021