I am assuming I need to implement:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(resignActive:)
name:UIApplicationWillResignActiveNotification
object:nil];
...
I have setup a UITableView (320 wide) with a UITableViewCell created in IB, the cell is also 320 wide. After setting a background image (320 wide) in UITableViewCell (or my subclass to be correct) I have noticed that the cells fall short of the right hand side of the UI (notice the blue on the selected cell and the grey on the one above)...
Confused to why this line of code is causing a memory leak:
NSPropertyListFormat format;
NSMutableDictionary *d = [NSPropertyListSerialization propertyListWithData:rawCourseArray options:NSPropertyListMutableContainers format:&format error:NULL];
Any suggestions on a fix is much appreciated!
Regards,
B
...
In my iphone apps I have two textfields. I put a value in the name property of each textfield, but in the code I want to get the name of the textfield itself. I tried textfield.name but that does not work. How can I have the value of the property name?
...
I have an app that uses ASI-HTTP-Request for large files, and I had a tester recently note that they wer observing very long loading delays that should be manifesting as timeouts. I have delegate methods wired up for request failures, but these didn't seem to be happening.
I poured through their documentation but didn't see anything spe...
whats going on here programmers, apple released the storekit and we cannot even get any callbacks for the cancel event when a user puts in his/her email and password for
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]
. DO NOT GET THIS CONFUSED with pushing cancel when cancelling a purchase, this is pushing cancel when tr...
I am trying to use the count of objects from my FRC fetch so that I can create an "Add" cell after all of my fetched objects have been listed in a UITableView. Is there a method for returning the number of objects fetched? I can only find a method that returns the count of sections for a given FRC.
...
Hi all,
I'm working on an app that uses Core Data, and I'd like to be able to code it in a way that it can use a local SQLite store or a web-based store (with an XML or JSON response schema).
Is it possible to use the exact same code for the Core Data stuff and just select the appropriate persistence store based on a user's preference?...
In my application I havea uiscrollview which contains a UIImageView. The UIImageView is a map, on this map the user presses on tab bar items and an icon is displayed on the map. I made it so that when the user taps a tab bar item them map will zoom to the icon location using the zoomToRect method, but when I implemented the setZoomScale ...
I'm having a recurring problem in Objective-C. I'm either releasing things too many time, or not enough. or perhaps I'm not retaining them enough...
Can someone point me at a good reference that will give me a rule of thumb on when I need to retain and release?
For example:
I remember reading somewhere that some objects come pre-ret...
Hello,
I am currently building a simple game in cocos2d. I wish to have a CCColorLayer which has a transparent background, but has visible children CCSprites.
Is this possible, and if so how?
Many Thanks,
nonono
...
Does NSNotificationCenter use pointer equality or some other criteria (like isEqual: or hash:) to determine whether a notification should be sent to an observer?
...
Hello All,
I am having an issue that is perplexing me. I have a NSMatrix using NSButtonCells to display a series of checkboxes. Because the Text is RTF I have to set AttributedTitle instead of Title. But even with wordwrap set to true it will only wrap Title and never does it to AttribtuedTitle.
Has anyone out there ever dealt with thi...
If been looking around the web and can't seem to find any good solutions to sending allowing your user to submit bug reports from your iPhone app.
How do you handle crashes and exceptions?
Do you send the error user-data to a server,
grab a log file from somewhere and attach,
or do you ignore it and pretend it never happened?
Anybod...
I am trying to draw point sprites with OpenGL ES on iPhone. It's possible there could be very many of them (1000) and up to 64 pixels wide (maybe that's my problem right there - is there a limit or could I be using too much memory?)
I am using CADisplayLink to time the frames. What happens is that the first gl drawing function tends to ...
Hello,
I need to show an Activity Indicator to the user during a database operation that takes some seconds.
I have the UIActivityIndicator configured and working, but when I call [myActivity startAnimating]; and the next call is to do the database operations it never shows me the activity.
I think this could be solved by doing an as...
Is this method supposed to take a path as its argument?
It looks like it takes a filename as a path:
For example, /home/file.txt is a file, while /home/ is a path. This method looks like it takes the former as an argument.
...
The following code (located in my -viewWillAppear) successfully implements a cell as a tableFooterView:
CGRect cellRect = [self.tableView rectForRowAtIndexPath:0];
UITableViewCell *footerCell = [[UITableViewCell alloc] initWithFrame:cellRect];
//footerCell.editingStyle = UITableViewCellEditingStyleInsert;
footerCell.textLabe...
I got Facebook Connect working and all and it's loading up the user's friends list with perfection. So now I have the logged in user's UID and the friend's UID. How would I go about calling their users.getInfo method from the SDK? The example below is what they give me to set a status, but I don't know how I can transform it to work with...
I am in the process of cleaning my code and testing for bugs, when I came across this build error: ['xmlEntity' is not an Objective-C class name or alias]. Here is a shorten version of my class .h file.
@interface PMXMLParser : NSXMLParser {
NSMutableDictionary *xmlEntity;
NSMutableDictionary *collectionDict;
}
@p...