Can anyone help me add children to a plist?
I think I want to record an index of rows from the plist and then state which index row to write the key too.
I'm not sure how to say if the key will be a string, dictionary or array.
The following is code from another question on adding a key to root.
NSString *path = @"path/to/some/file"...
I have a UITableView that I am loading via JSON. So my logic goes like this:
Fetch the JSON (NSOperation, calling back to main thread)
In callback, parse the json, and insert new data into my table's data source array.
Call reloadData on the TableView to show the new data.
My question is: How can I ANIMATE the arrival of new rows in ...
how do i get size of folder NSCachesDirectory i.e /Library/Cache. i want to know size of this folder so that i can eventually clear this.
thanks.
Edit: here is my code.
NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:folderPath error:&error];
if (attributes != nil) {
if (fileSize = [attributes ob...
I've been staring at this issue for the past week. Countless cups of Joe, cats stepping on my keyboard, and girlfriend wanting me to get off of the laptop later - I still can't figure this out. Hoping I'm doing something very stupid (100% chance) that I'm over looking.
I have some code which appends a decimal to the number pad. Most of ...
I am new to iphone development.I want to display image in each cell.I am having only the url of the image in a array.please help me out.Thanks.
...
I am starting Objective-C with intention to get into extensive iPhone Development. Where are some good places to start? I have purchased 2 books:
Programming in Objective-C by Stephen Kochan
and
Beginning iPhone Development by Dave Mark and Jeff LaMarche
The tutorials are good, I would just like to get into my own t...
Hello all,
I found this in my travels:
http://www.opensource.apple.com/source/IOKitUser/IOKitUser-502/ps.subproj/IOPSKeys.h
How would I get the values (as a number) of:
#define kIOPSMaxCapacityKey "Max Capacity"
and
#define kIOPSDesignCapacityKey "DesignCapacity"
I want to be able to use them throughout my app. What do I need to...
Hi,
I have a UIButton within a UITableViewCell and I would like to assign the standard 'Action' icon to this button.
This icon is normally associated with a UIBarButtonItem by assigning the icon to UIBarButtonSystemItemAction, however I cannot add a UIBarButtonItem into the UITableViewCell's view and therefore I would like to know if i...
Hi,
I would like to develop an iPhone App based on an existing open-source Objective-C framework, however that framework makes extensive use of the glib library and I cannot find a way to build and include the glib library for an iPhone app (non jailbreak).
Is there any way this can be done, or is there any recommended approach to port...
Hi all, I have 2 NSArray (Mutable, actually) that I am trying to convert to a C-style double array for a c routine i am passing them to.
Here is my Objective-C routine:
NSMutableDictionary *childDictionary = [myParentDictionary objectForKey:resort_code];
latitudeArray = [childDictionary objectForKey:@"lat"];
longitudeArray = [childDic...
How would I go about having a list of labels, and when a Round Rectangular Button is pushed the UILabel above it changes to a label off the list randomly.
...
I'm new to iPhone dev,
I'm wanting to start a loop that checks for user input, but the main hook into the program I've written needs to be instantiated and started, I thought viewDidLoad would be the appropriate place to place the code for my sub view controller.
But the actual backgroudn of the VC doesnt get displayed until viewDidLo...
Hi all, I have a problem with adding a set of UIButtons to a UIScrollView. With the buttons added it seems that the scroll command is not being passed to the scroll view as the buttons cover the whole surface. I've read various posts on this but still can't figure it out. I'm pretty new to iPhone programming so there's probably something...
Hello. I had thought I actually had a pretty good handle on the whole view controller model, but something just doesn't seem to making much sense for me. My main issue is with adding a custom UIView subclass as a property of a UIViewController subclass.
Whenever I assign a valid instance of a UIView subclass to that property, nothing h...
Is there a way I can programmatically change the IBAction of a UIButton?
I know I can just create two buttons and use button.hidden = BOOL, but I'd much rather just change the IBAction itself.
...
UIView *leftButtonItemView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
UIImageView *addButtonEmptyImage = [[UIImageView alloc]init];
[addButtonEmptyImage setImage:[UIImage imageNamed:@"black.png"]];
addButtonEmptyImage.frame = CGRectMake(15,0,20,30);
[leftButtonItemView addSubview:addButtonEmptyImage];
[addButtonEmptyIma...
I've done a lot of reading of the Facebook docs, but I'm pretty confused about the role of the session object. For instance, with the method:
session = [FBSession sessionForApplication:myApiKey secret:myAppSecret delegate:self];
What am I supposed to do with the session object that's returned to me, when presumably I need to wait for ...
I was wondering whether or not it is possible to use the NSCoder method:
- (void)encodeObject:(id)objv forKey:(NSString *)key
to encode either an instance of NSArray or NSDictionary. If not how do you go about encoding them? I am trying to use NSKeyedArchived / NSKeyedUnarchiver to send data between phones using GameKit. I tried it an...
Hi,
I have an OpenAl sound engine on my iPhone app. When I play a sound that I have loaded, I can control it's pitch.
In OpenAl a pitch set to 1.0 has no effect. If you double it to 2.0, it plays the note 1 octave higher(12 semitones). If you halve it, to 0.5, it will be an octave lower (12 semitones).
So, my original sample is playi...
Hello,
I'm playing around with moving uitableviewcells, and for whatever reason,
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingstyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleNone; //<-- bp set on it
}
isn't getting called (I've set a breakpoint on it) - ...