An immutable, integer-indexed array of objects from the Apple Foundation framework.
3
votes
0answers
425 views
Error after trying to serialize with JSONModel: Invalid type in JSON write (…)
i'am trying to serialize my object with the Framework JSOSNModel. But i am getting the following error:
[JSONModel.m:915] EXCEPTION: Invalid type in JSON write
(DienstleistungModel)
Here is my ...
3
votes
0answers
360 views
Assertion failure when trying to write data to Keychain
I am trying to write some array data to my keychain using the code below
// set up keychain so I can write to it... or read if needed (specially for testing)
KeychainItemWrapper* keychain = ...
2
votes
0answers
100 views
How to sort SKProduct by Apple ID
I'd like to sort those products retrieved from itunesconnect.apple.com by AppleID that are online generated automatically.
I checked SKProduct, but only find these propertis, none of which are ...
2
votes
0answers
368 views
Passing an NSArray populated with NSDictionaries to a NSAppleScript
So I have an Apple Script that is running one of the functions of my program like so:
[ NSThread detachNewThreadSelector:@selector(runAppleScriptTask)
toTarget:self
...
1
vote
0answers
28 views
Crash when accessing array
I have the following weird stacktrace:
Thread : Fatal Exception: NSRangeException
0 CoreFoundation 0x26ec2e3f __exceptionPreprocess + 126
1 libobjc.A.dylib 0x34570c8b ...
1
vote
0answers
34 views
Query to an NSArray or db parse.com
When passing data to a new viewController after clicking on a pin on a map view with MapKit, I have problem with the annotation index when clicked on rightCallOutAccesoryView. It is not correlating to ...
1
vote
0answers
35 views
NSArray(contentsOfFile:) crash in release build
The following code works fine in a development build:
let filtersPath = NSBundle.mainBundle().pathForResource("Filters", ofType: "plist")
let filterDictionaries = NSArray(contentsOfFile: ...
1
vote
0answers
47 views
Xcode Instruments: how to keep track of view controller's properties
I'd like to see the allocations for the properties of a certain custom UIViewController object I have. In particular, I'd want to see what is happening with some NSMutableArray and NSArray objects ...
1
vote
0answers
40 views
uisearchbar crashes after pressing cancel
My filteredContentForSearchText ignores predicate after user presses cancel on search bar in iOS.
I am filtering an array with a uisearchbar with the following method:
#pragma mark Content Filtering
...
1
vote
0answers
25 views
call UIView in Array to UITableViewCell
I have built a UIView with some stuff like buttons and labels on it. I was wondering how I could assign that UIView a string value so that it could be added to the NSArray that holds the titles for ...
1
vote
0answers
29 views
Iterating through NSSet, extracting arrays
I have two entities tied together with a to-many relationship; A dish has a to-many relationship with ingredients and ingredients has a to-one relationship with a dish.
I acces the ingredients for a ...
1
vote
0answers
46 views
Search in NSArray VS search in CoreData
Which one is more efficient and recommended to use, I need to fetch a list of favorites from coredata and search it multiple times from uitableviewcell to see if it is favorite or not (exist in array ...
1
vote
0answers
54 views
NSArray property not releasing content objects
I'm stuck with what should be fairly straight-forward in a classic, non-ARC project:
My class has a (retain) property for an NSArray. The array is initialized from a factory method that stuffs a ...
1
vote
0answers
150 views
AFNetworking 2.0 adds [] square brackets to json that get send to server
I am using AFNetworking 2.0 and have run into a problem.
I am trying to PUT an array in json to the server.
I am posting the Array like (See Code Below). I am adding the following array to the Json ...
1
vote
0answers
99 views
Checking if array contains objects issue
Why does this block of code not fire? The Array contains 0 objects, so i thought that the array.count == 0 should have worked in this case.
Instead, the code goes to the else statement. What am i ...
1
vote
0answers
137 views
NSDictionary store the objects from the last array
I have created 3 buttons at my top.take the offset of them and giving them same IBAction.
I want to change images at below according to the which button is pressed.
Further i have to pass these ...
1
vote
0answers
59 views
Use of two different array created by multi child xml parser in iOS
Here is my XML file :
<MemberBooks>
<MemberBookDTO>
<BookId>1</BookId>
<Name>Dönüş</Name>
<Author>Ayşe Kulin</Author>
...
1
vote
0answers
64 views
Save shopping cart content UITableView
I'm working on converting an online store into a mobile application.
But I'm stuck on the shopping cart.
Here is what I'm doing:
I parse a product ID from the server and hand this is over to other ...
1
vote
0answers
56 views
UIPageControl wont update the page I am on
I have this method that allows a UIPageControl to be displayed and show images based on an NSArray of images on the web. It sort of works ,but it doesn't update image when I change the current page. I ...
1
vote
0answers
72 views
Retrieving a list from an NSArray
I want to set a list from the contents of an array without running a for loop.
I used the appendEntities method to achieve this.
NSMutableArray *mutArray = [[[self tempList] makeArray] mutableCopy];
...
1
vote
0answers
46 views
Re-calculate the items inside a `NSArray` then reload the `UITableView`
I have two arrays:
array1: A,B,C,D,E,F,G,H
array2: 1,1,2,2,3,3,4,4
every two letters (stations) add $2.
these two arrays will populate in a UITableView, whenever a user tap on a UITableViewCell ...
1
vote
0answers
143 views
which keychain attribute can i used to save a small NSArray
I have an NSArray of server addresses I would like to put into my keychain. The reason why I am trying to do this all be it not imperative to keep the addresses secret, it would be preferable.
Here ...
1
vote
0answers
205 views
How to add NSArray in a video with AVMutableMetadataItem?
I am trying to save video with custom NSArray metadata relevant for my app and trying to retrieve it when the user selects that video from the library.
I'm using the AVAssetExportSession function to ...
1
vote
0answers
242 views
In cordova program, how to get NSArray return value in JAVASCRIPT
I am using cordova(phonegap) framework in my ios program.
In native *.m code, I want to return an Array object to javascript.
The code is :
-(void)getDeviceInfo:(NSMutableArray*)arguments ...
1
vote
0answers
113 views
How to implement one-to-many boolean relationships in a GUI, using core data?
I have a number of persons in a core data model, and a number of skills. I'd like to have a window where the user can add or remove skills. This window also has a table of persons, with an NSCheckBox ...
1
vote
0answers
67 views
transition from one scene to another
I have three NSArrays named a, b, c and another NSMutableArray named na.
The 3 arrays contain the elements imagename.image.
When the button is taped the 3 arrays are merged to the mutable array ...
1
vote
0answers
78 views
Sort response.products before saving into NSArray so I get fixed index every time
I went through Ray's in app purchase tutorial at
I got it working, but I found that the product response from Apple uses NSSet, and so the order is changed each time.
I'm hoping to sort it ...
1
vote
0answers
115 views
Making an array from a plist issue
First, a little background. I am trying to make a platform game. In front of the game layer I want "lights" to go by and by lights I mean white triangles. I am trying to get coordinates for the ...
1
vote
0answers
333 views
Grabbing Multiple Photo Albums from Facebook
I've been trying to access the pictures in photo album of facebook. I managed to enter and get the information, but when it comes to storing it into the placesArray, i only store the last album that i ...
0
votes
0answers
18 views
Parse Query creating duplicate rows
I'm having a hard time deciphering why my code is creating duplicate entries for a key.
NSString *posttitleString = [titleArray objectAtIndex:indexPath.row];
NSLog(@"%@", posttitleString);
PFQuery ...
0
votes
0answers
29 views
Combine 2 NSArrays of NSDictionaries
Array1{ ( Name:david; Place:UK; Work:Google; url:"www.google.com"; id=1;,
Name:John; Place:UK; Work:Yahoo; url:"www.yahoo.com"; id=2;,
Name:david; Place:US; Work:stack; url:"www.facebook.com"; id=3; ...
0
votes
0answers
32 views
beginUpdates endUpdates crash with nothing between
I am entirely confused. I am modifying my table and it's crashing while up via adding/deleting rows and reloading sections. So I stopped adding and deleting rows, and it still crashes. So I stopped ...
0
votes
0answers
7 views
Retrieve filtered data in search results from JSON array
In view did load, when it is a regular table not served from JSON, the array looks something like this:
self.data = @[@"one",@"two", ...
0
votes
0answers
50 views
How to regroup NSMutableArray on tableview
This is how I regroup the array in viewDidLoad :
arrayChild=[[NSMutableArray alloc]init];
arrayTitle=[[NSMutableArray alloc]init];
arrayParent=[CM getParentCategory];
for (int i=0; ...
0
votes
0answers
14 views
Load value with NSUserdefaults not working
NSUserdefaults load not loading from saved value.
I try to save an NSArray object of selectedpickerrow in NSUserdefaults as string, but when I load the object it loads new value i changed to, not the ...
0
votes
0answers
32 views
How can I add NSObject to NSArray of NSObjects without saving to Core Data
I have an NSArray of objects filled by fetching from and Entity in core data.
name.."Bob" age.."23"
I need to add an object to the end of this array without saving it to core data.
Using a ...
0
votes
0answers
12 views
Interrogating NSArray while debugging Xcode
I have populated an NSArray called workerNames and I can see that there are there as when I type the following in the debug window:
print self.workerNames.count
it returns the correct number in the ...
0
votes
0answers
13 views
How to save a line break into a plist NSArray?
I am trying to save an NSArray into a plist such that each element of the array is a string with line breaks.
I understand that the plist can be edited directly by hitting option +enter keys.
But I ...
0
votes
0answers
16 views
Trying to locate a NSRange (rangeValue) in a NSmutableArray
I've just started using NSPredicate and it's causing me a crash:
I'm trying to find the location (objectAtIndex) of a NSRange object in a NSMutableArray.
The NSRange I'm trying to locate in the ...
0
votes
0answers
22 views
How to extract the dictionary from object
Here is my data structure
File InvoiceData.h
#import <Foundation/Foundation.h>
@interface InvoiceData : NSObject
@property (atomic, strong) NSString *invNumber;
@property (atomic, strong) ...
0
votes
0answers
28 views
how to check if searchDisplayController has been used
I've got a View where contacts are listed in. When I'm not using the search bar, it passes the right values to the other view controller, but when I'm searching and I've narrowed it down to one or two ...
0
votes
0answers
26 views
Social Action Sheet and sharing mulitple pieces of data
i am really confused on how to share multiple pieces of data using the Social Action Sheet! I'm still a beginner, so any help would be awesome!
This is my code for the Button Action:
...
0
votes
0answers
44 views
Syncronize operations inside a for loop
I'm using the QBImagePickerControllerlibrary to select more than one image in the provided Image Picker view.
I want to let the user upload more than a single image to the "main" server, with a ...
0
votes
0answers
35 views
Trying to understand NSPredicate for time-filtering array
I'm new to using predicates to filter data and can't seem to get this to work right. I want to send only the last 5 seconds of data captured, but instead I seem to send all of it or none of it ...
0
votes
0answers
48 views
Weird NSZombie error in nsmutuablearray
I had faced a weird error for a few days ago. Luckly, i had solved this error about in 4-5 day. However, i just wonder that the error why happen.
First of all, i will describe the situation with ...
0
votes
0answers
325 views
Xcode- terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI length]: unrecognized selector sent to instance
I don't know what is wrong with my code but when I run the app and click on something to see a detailed view it crashes and shows what is on the screen shot.
What should i do?
What code should i ...
0
votes
0answers
201 views
[__NSCFString countByEnumeratingWithState:objects:count:]
I want to save array of images into photo album. When i use single image for saving it works [UIImage imageNamed:"test.png"]. But if i use array of images i'm getting error'
NSArray *photos = ...
0
votes
0answers
24 views
Getting null value after adding objects to customClass
Ok here's my code first viewController.h
@interface ViewController : UIViewController<UICollectionViewDataSource,UICollectionViewDelegate>
{
NSMutableArray *twitterObjects;
}
@property ...
0
votes
0answers
43 views
Sorting array with mixed object does not sort correctly
I have an array to which objects of different classes are add.
After that, this array is sorted by a date attribute which both classes have.
But the sorted array is not sorted in the correct order:
...
0
votes
0answers
185 views
[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 1]
I have use [self.navigationController.viewControllers objectAtIndex:2]. So i need to set my viewcontroller in NSArray. But i tried below method, then i'm getting error. I understood i don't have array ...