The Cocoa Touch frameworks that drive iOS apps share many proven patterns found on the Mac, but were built with a special focus on touch-based interfaces and optimization.
-1
votes
1answer
14 views
iPhone: Better way of implementing a “context menu”?
Well, I'm currently working on a new small project of mine and I'm wondering, whether there's a better way of implementing a "context menu" in my app. Below I attached a screenshot of how it currently ...
-2
votes
1answer
17 views
Extracting a name from a String
I'm quite new to NSString manipulation and don't have much experience at all of manipulating strings in any language really.
My problem is that I have a string that contains a lot of data, within ...
0
votes
0answers
13 views
Fastest way to find an NSManagedObject in an NSSet
I have 2 NSSets with NSManagedObjects, the objects for each set are fetched in different threads, meaning some have a matching objectID, but the objects themselves are different. Now I want to remove ...
0
votes
0answers
35 views
Puzzle swipe gesture
Im trying to figure the best way available in iOS to solve the following:
Basically I've built a 4x6 tile matrix with UIButtons, each containing a letter. The buttons are contained within a UIView. ...
0
votes
0answers
27 views
iOS - Part of interface not showing up in simulator - Interface Builder
I'm having a problem where everything shows up fine in the view for interface builder but then when I run the app in the simulator some of my labels and buttons look like they've been scratched out or ...
0
votes
2answers
24 views
Can't set UIImage to UIImageView from Url?
I can't understand why I can't set the uimageview from url from the example below:
NSData *data = [NSData dataWithContentsOfURL:[NSURL ...
0
votes
0answers
5 views
iCloud Key Value Sync - first launch
I am using iCloud to store sync user preferences between devices. On the device, these are stored in an array of 'Favorite Teams' in NSUserDefaults, and I am using MKiCloudSync to mirror them to the ...
1
vote
0answers
13 views
GameCenter match making according to same preference value
I'm developing a game that has different difficulty levels, and I want to allow multiplayer on either the "hard" or "expert" mode. I know that there is the playerAttributes property on the ...
0
votes
1answer
13 views
Cocoa Touch JSON Handling
I've been looking for a while now and I can't seem to find a solution.
I am trying to format a JSON object that is being held in an NSData *receivedData.
The format of the JSON is:
[
{
...
-1
votes
0answers
32 views
I Can't read the nsdictionary from json inside a nsmutablearray
I just don't know the approach to solve this...
I am successfully reading a json structure, which is a list with other lists inside
this works fine until the last node of json, it always throws an ...
0
votes
0answers
46 views
Running executables iOS
I'm trying to make an iOS app to run an executable file from code. The file is in /usr/bin/, and I need to execute it with arguments.
How can I do it?
0
votes
1answer
18 views
Retain Subview contents from one View Controller to another
I'm using the Cordova cleaver to insert some subview into parts of my native app. I'm having difficulty retaining the contents of these subviews between the pages of my app. For example if I go from ...
0
votes
0answers
23 views
Invalidating locally cached data from an API in Core Data
In an app I'm building, I'm using Core Data to cache remote content from an API for offline viewing. This all works pretty well except for one big issue: if a record on the server is deleted there's ...
0
votes
1answer
18 views
Autolayout height equal to MAX(multiple view heights)
Say I have a view called container. container contains 5 UIButtons. I want to add a height NSLayoutConstraint on container, and this height should be equal to the NSLayoutHeightAttribute of the ...
1
vote
1answer
31 views
Making an element an element display on top of the UIView border
I am trying to place a UIButton inbetween my popup view and the parent view.
I cant successfully do that by doing that [self.view addSubview:new];. My problem there is the border UIView can be seen ...