I have a case where the child view sends notification to parent view. Now i'm calling addObserver in viewWillAppear and remove Observer in viewWillDisappear. But, i'm guessing this is not correct since viewWillAppear calls when view is refreshed.
[[NSNotificationCenter defaultCenter] addObserver:<#(id)observer#> selector:<#(SEL)aSelect...
I'm looking for an Objective-C way of sorting characters in a string, as per the answer to this question.
Ideally a function that takes an NSString and returns the sorted equivalent.
Additionally I'd like to run length encode sequences of 3 or more repeats. So, for example "mississippi" first becomes "iiiimppssss", and then could be s...
I UIButton using + buttonWithType:
What I need to figure out is how to manually change the button state. There are times when I need it to be set to "disabled."
I read through the UIButton documentation but I cannot seem to find anything about manually setting a button state.
Any thoughts would be greatly appreciated.
...
Hiya,
I've heard a lot of people talk of a tool called Memory Monitor as a better way to examine the memory usage of an iPhone app as Object Alloc doesn't give an accurate picture of how much memory an app is actually using.
How can I launch Memory Monitor? I can't find it in instruments. Is it a part of a separate tool I have to downl...
In Java, it would look like this:
class Foo
{
float[] array;
}
Foo instance = new Foo();
instance.array = new float[10];
...
I am looking for more iPhone developers who are actively posting to their blog and/or Twitter. I have been learning a lot from books but the online resources beyond Apple's developer site have been hard to find.
Please let me know if you are doing iPhone development. You can see my comment on Twitter here...
http://twitter.com/offwhite...
Can anyone recommend a C or Objective-C library for HTML parsing? It needs to handle messy HTML code that won't quite validate.
Does such a library exist, or am I better off just trying to use regular expressions?
...
For iPhone game development, seems there are very like functions using CALayer and UIView, we can implement our spirit using CALayer or UIView , and animations are usable for them too. But for coding, there are many difference between CALayer and UIView like object methods and properties etc. So which is the better choice?
...
I want to study cocos2d, seems it's a good framework for iphone game programming. So is there any cocos-2d based open-source iphone game exist?
...
I would like to access the visual voicemail files that are stored on an iphone. Are there ways to access these files through the SDK? Does anybody have any experience in working with these files? I am assuming that they are files that are downloaded from the network and stored locally on the iphone.
...
To be clear, this is for a normal iPhone application, and not a game.
I've read around the web a few times some developers mentioning that they were working hard to improve/reduce the startup time of their applications, but never with any good background information on how to do so.
So the question is simple: how can you reduce the sta...
What is the best iPhone analytics offering out there? I've seen Pinchmedia but I'm not sure about it since the default application page says "Last Updated July 2008".
...
I can't find the documentation for the NSString sizeWithFont:forWidth:lineBreakMode: method (see Kevin Ballard's answer to "Sizing a UILabel (in the iPhone SDK) to fit?") in the NSString Class Reference in the iPhone SDK Developer Documentation. Where should I look?
Update: I hadn't subscribed to an iPhone OS Library doc set, so my sea...
I'm working on an IPhone application that works with a Google App Engine application. I manage to get logged by using a google account and I get the authentication token. I'm also able to GET data from the GAE service (I did it after reading another question written here) but now I need to POST data so I need to send the authentication t...
I cannot find comparison of these parsing technique. Which one is most commonly used?
Regards.
Mustafa
...
I'd like to have a UIDatePicker where the user can pick a month and a day but not the year. I'm aware that leap years have an extra day, so for simplicity, let's throw that day away.
Is there any way to remove the year column or have 2 reels with month/day that act like the UIDatePicker (grey out days that don't exist in the selected mo...
Can someone illustrate (or point me to a good tutorial) on how to add a Date Picker to a view programatically (i.e., without using the interface editor)?
...
Is it possible to animate the change of a UIProgressView such that the display will move smoothly to the new value?
Kinda like NSProgressIndicator does.
...
I am creating an application in iPhone and I have several UIViews and layers in it. I am doing some animations using CAKeyframeAnimation class and since the animations have to be chained, I have overridden the animationDidStop method in UIView.
I am getting the callbacks properly, however I just couldn't figure out how I can find which ...
Hi!
I'm trying to do that for a couple of days now, and after reading tons of messages of people trying to do that too, I'm still unable to have a fully working UITextField in some of my UITableViewCells, just like in this example: http://img231.imageshack.us/img231/4858/picture4za3.png
Either I have the form working but the text is ...