Tagged Questions
0
votes
1answer
36 views
NSMutableArray with UITableView
I wanted to know what the implications (memory, processor overhead, etc.) there are to using a NSMutableArray to populate a UITableView rather than using an NSArray.
Reason I must use a ...
0
votes
1answer
34 views
How to delete tableview row in split view controller
I am trying to delete a tableview row that is displayed in my split view controller. When i swipe left and click delete, my App crashes, and i get the error:
Terminating app due to uncaught ...
1
vote
1answer
35 views
access multi dimension NSMutableArray of NSMutableArrays using UITableView indexPath
I have a UITableView with a dynamic amount of sections and rows, I am wanting to use a custom cell.accessoryView which I have managed to create using the following code.
- ...
0
votes
3answers
48 views
how to add values in nsmutable array in cellForRowatIndexpath method for each row?
i am trying to add number of lines of each ui table view cell's textview .For this i have made an nsmutable array in rowatIndexpath and tried adding values in that array .Problem is that only one ...
0
votes
1answer
31 views
iOS : sort information base on date Modified on UITableView
I have a UITableView that I got information from server, I want to sort my information based on Date Modified, would you please help me in this implementation, how can I sort it?
Thanks in advance! ...
0
votes
1answer
51 views
iOS: show info to UITableView
I have a map with different annotation, I got this information from json and server, I can show status of my information to the map, I want to show it in my table also, my table implementation is ...
-1
votes
1answer
28 views
Accessing dictionary value in an NSMutableArray
catArray-->
{
"category_logo" = "category_logo/blue.png";
"category_name" = "Health & Wellness";
id = 9;
}
I have to fetch the "category_name" in my tableview
- (UITableViewCell ...
1
vote
2answers
44 views
UIImageView to UITableViewCell
I get images for JSON.like this:-
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{
NSMutableArray *al=[NSJSONSerialization JSONObjectWithData:webData options:0 error:nil];
...
0
votes
1answer
53 views
Why a NSMutableArray objects are getting null values on sometimes?
I'm using a UITableView and UITableViewCell in my project, I've customised the UITableViewCell properly, and in the TableView I'm displaying an Array of items, I'm assigning the values to that array ...
0
votes
2answers
27 views
Need to know how to display an NSMutableArray to a UITableView Xcode 5
I am currently trying to display a NSMutableArray into a UITableView. The problem lies in the NumberOfRowsInSection and in the CellForRowAtIndex. I am able to fetch twitter feed and logic to the ...
1
vote
2answers
63 views
NSMutableArray in Custom cell implementation issue
So i had this code on my SpecialOfferCell.h
#import <UIKit/UIKit.h>
#import "AFImagePager.h"
@interface SpecialOfferCell : UITableViewCell<AFImagePagerDataSource,AFImagePagerDelegate>
...
0
votes
2answers
39 views
Adding Items with BOOL Value YES to UITableView
Below are a bunch of social media names attached to boolean values that are being pulled from NSUserDefaults. In a previous view, users have the ability to use UISwitches to determine the value of the ...
0
votes
1answer
44 views
Two NSMutableArrays in one UITableView with custom cells in iOS
In my iOS app, I am having two NSMutableArray
@implementation MyViewController {
NSMutableArray *arrOne;
NSMutableArray *arrTwo;
}
declared in my implementation file and one UITableView
...
0
votes
2answers
57 views
NSArray is empty after sending data from my class to TableViewController
I have a Data class that inherits from NSObject.
In this class I handle my data requests.
After this I want to send the data that it holds in an NSMutableArray to my UITableViewController.
How can I ...
-1
votes
1answer
40 views
How to Modify UITableView Data Source Array Properly
Say I would like to remove rows or add rows to a table. Is it smarter for me to modify the data source and let the table do updates or use UITableView's insertRowsAtIndexPaths:withAnimation: and ...
0
votes
1answer
80 views
I'm trying to expand every UITableViewCell in a UITableView recursively by inserting the cells into the table, the cells aren't expanding correctly
The table starts off with "collapsed" parent cells (the array representing this is what is first passed to the function). Each cell is represented in the array by an NSDictionary. Each parent cell has ...
0
votes
1answer
52 views
Recreating NSMutableArray
I have a NSMutableArray called _objects stored in NSUserDefaults. I access _objects upon app launch and put them in a CollectionView with custom cell (see below). I let the user edit each item by ...
1
vote
3answers
24 views
NSMutableArray object ownership
I have NSMutableArray in a TableViewController to hold the items, which are shown in TableView. NSMutableArray is being populated in viewDidLoad Method.
- (void)viewDidLoad
{
[super viewDidLoad];
...
1
vote
1answer
43 views
NSPredicate with NSURL crash in iOS
I need to search pdf file that located in document directory with UISearchBar.
I am using this method to load PDF from document directory to show in UITableView.
- (NSArray ...
0
votes
0answers
11 views
Unexpected characters and nulls in tableview from xmlparser
I am using NSXMLParser to parse an XML file so that I can display data from an RSS feed in table view. However, title data is correctly parsed and passed to the appropriate array, but upon passing the ...
0
votes
1answer
38 views
uitableview array of objects as datasource
i have a UITableView in a storyboard in an ios xcode project,
i also have an array of menuitem objects stored in itemarray:
NSMutableArray *itemarray;
this is my menuitem.h file
#import ...
-1
votes
1answer
28 views
Problems in adding object from one view to a mutableArray in another view
Hi everyone I have been building an app and have met some problems.
My app has two viewControllers. One is MenuViewController and another one is MainViewController.
I want to pass a string from ...
0
votes
2answers
34 views
UITableView NSMutableArray and NSDictionary
I’ve got this error when populating a tableview from an nsmutablearray.
The arrays are added to the dictionary and the dictionary added to the mutable array, but the app crashes each time the view ...
0
votes
1answer
35 views
insertRowAnimation for the first cell doesn't work when batch inserting in UITableView
Hi Im trying to add an observer for my model to notify UITableview about any changes in the model. with this pattern I can decouple the model and view and I can put UITableViewDataSource in another ...
3
votes
6answers
80 views
iOS TableView is displaying same object in every cell
I have a weird problem, I am setting up a very basic table view to display contacts and I have the tabelviewcontroller as shown below (I tried to include all relevant portions), but for some reason ...
1
vote
1answer
43 views
Deleting the last item in an array and UITableView
I have a tableView with one section in it which contains an array of values. Here is what the numberOfRowsInSection looks like
- (NSInteger)tableView:(UITableView *)tableView ...
-1
votes
2answers
37 views
Adding items to NSMutableArray based off of NSDate in iOS
In my iOS native app, I parse an XML file, parsing everything using a class called RSSEntry. It takes the date from pubDate and stores it as articleDate, an NSDate. After it parses everything, this ...
1
vote
1answer
80 views
Add up all values in NSMutableArray and multiply by value depending on Plain Segmented Control
What i want to do is multiply the latest NSMutableArray array entry (entered using a UITextField) by 3 when Moderate intensity is selected using the Plain Segmented Control and 6 when vigorous is ...
0
votes
1answer
101 views
UITableView not loading cell data when scrolling
I have a UITableView setup on my View Controller using 1 prototype cell. When the view controller loads it queries my database (code removed for security reasons) uses CustomisationObject to create a ...
1
vote
1answer
35 views
UITableView only loads items on scroll down
When I open the table view it calls the function bellow but returns nill for the Cell. But when I scroll down it calls the function, and return the proper values. Thanks in Advance
- (UITableViewCell ...
0
votes
2answers
64 views
modifying copy of array object affect object stored in the array
I have object copying issue.
@property (nonatomic,strong)ITEM *editingItem;
self.editingItem= nil;
self.editingItem = [[self.ItemsArray objectAtIndex:indexPath.row-1] copy];
self.editingrowIndex = ...
0
votes
1answer
57 views
updating mutable array in table view
I'm a newbie for iOS. I have a problem about NSMutableArray. Hope you will help me
My app has 2 view controllers (Home and List).
In List , I have a NSMutableArray
self.arrayCategory = ...
0
votes
1answer
195 views
IOS Change Accessory View Cell Image in Uitableview based on NSMutableArray value
I have a UITableview That I display a list of users and their profile pictures. On the right hand side of the UITableview I have added a image for the Cell Accessory View.
I have a NSMutableArray ...
-2
votes
2answers
238 views
UITableView bounds Terminating app 'NSRangeException' -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]'
Having trouble with the following bit of code: I have this LeavemanagementViewController.m
i am extracting and loading datas from xml from server. total number of elements is depends upon the array.
...
0
votes
2answers
140 views
App crashing when trying to populate a UITableView from NSMutableArray
I can't seem to figure out why my app crashed when adding objects to my table. I used this (http://www.theappcodeblog.com/2011/05/09/parsing-xml-in-an-iphone-app-tutorial/) tutorial to parse XML, ...
0
votes
2answers
162 views
ios: NSMutableArray Count Prints Zero after adding object?
My project is based on parsing xml data and adding it to array and display in respectives views,now my problem is am parsing xml and adding those objects it to nsmutablearray as shown below:
...
0
votes
1answer
91 views
How do you load multiple arrays into a UITableView?
I am calling some JSON and loading a table with the data from a single array. That's working great. Now I'm trying to figure out
A. the best way to load the data into the table and
B. the best way ...
0
votes
2answers
28 views
UITableViewController not being filled with NSMutableArray
I have a table view controller, FavoritesTableViewController and it has a mutable array "citiesArray". when a city button is pressed it calls a method which adds an object to the mutable array.
...
0
votes
1answer
62 views
How to open UITableViewController modally and pass NSMutableArray
I have a ViewController where I enter a key through a textBox. The entered key pulls out all available records from a database whether the same key is found. The list of the records forms ...
0
votes
1answer
83 views
NSArray of NSDictionaries into NSDictionary of NSArrays
I have created an NSDictionary of NSArrays based on a keyValue from the NSDictionaries found in the original NSArray. However I have an issue where the values inside the original NSDictionary are all ...
0
votes
3answers
67 views
Duplicate Object when adding in NSMutableArray [iOS]
Hi I have this problem that if I add more than 13 items in my uitableview the items will repeat
this is my code for
Adding:
[categoryList insertObject:inputcategory atIndex:0];
NSIndexPath ...
0
votes
1answer
93 views
Create a Sectioned UITableView using NSMutableArray of NSDictionaries
I have an NSMutableArray of NSDictionaries that I am trying to format for use with a UITableView that has sections based on one of the NSDictionary keys.
My NSDicitonary has two values
Name
Key
...
-1
votes
2answers
53 views
Spilt an NSMutableArray of NSDictionaries
I am trying to create a view that contains a UITableView, I would like to populate the UITableView using an NSMutableArray of NSDictionaries. I would however like to split the NSMutableArray into ...
0
votes
2answers
65 views
How to make a KVO observer and feed tableview with MutableArray info?
I have a problem, Im a starter in iphone programming and I dont know how to do this.
I have to make a KVO observer to know when a textfield is receiving a string and display that strings into a ...
0
votes
1answer
61 views
How do I change an array and make it show the changes in the UITableView?
To see items in my tableview, I load them from an array, but when I arrange the table, the changes don't stay. It works at first, but when I click on one of the cells it loads the data from the ...
-1
votes
1answer
46 views
Save NSMutableArray into NSUserDefaults
I'm making an app where you can keep track of the money you have. I wanted to present a log of the money added so I needed an NSMutableArray to store that information.
So what I want to know is how ...
-2
votes
1answer
229 views
dispatch_async UITableView ReloadData
I have a problem, when start the viewDidLoad method, the data is loaded and displayed correctly in UITableView but when I have to reload the data by clickPopular method, the TableView is not updated.
...
0
votes
2answers
86 views
Removing an object at a NSMutableArray causes a crash
Attempting to remove an object at a NSMutableArray causes a crash:
2014-03-07 18:58:03.755 HomeWork Pro +[12637:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', ...
-1
votes
1answer
80 views
Replace values inside NSMutableDicitionary that sits inside a NSMutableArray
I have an NSMutableArray that I have build up that consists or holds a NSMutableDictionary.
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
self.userNameArray = [NSMutableArray ...
1
vote
3answers
101 views
Need to access detailTextLabel property of UITableViewCell when button is pressed
I have programmatically created a UITableView and I have also programmatically created UIButtons to be included with every cell / row. I have set these buttons so that if they are tapped, their button ...