Is it correct, that there is no official API by Apple to create a well formed XML?
I searched the web for a while but I just found some external frameworks to create XML data structures.
I need it for a web service call and would prefer a native API by Apple.
Of course I could just put together some Strings, but I think that's not the ...
What's the best practice to create a few UIButtons in code that are anchored to the bottom of the view with a predefined spacing between each?
...
Is it possible to alter the text of a UILabel whist its superview is being animated by UIView animations?
Say I have labelView as a sub view of containerView. timerFired is being called during containerView being animated (never before or after). I'm calling setText of labelView during the animation, but its text doesn't change. Is ther...
Hi,
I want to move a row to the bottom of my UITableView with cool animation effect just like in Grocery Shopping List app. How can I create such animation?
-Alex
...
Whats the best way to get the current time (HH:MM:SS) using Objective-C. I would guess I should be looking at NSDate & NSDateFormatter. I had a quick glance at the docs and it looked a little more convoluted than I expected, so I thought I would check here to make sure I was on the right track.
gary
...
So XCode has been driving me crazy.. When writing iPhone apps using pickers or table views, when I state that the controller conforms to the DataSource and Delegate methods, XCode isn't generating code sense for those respective methods, and it's driving me nuts given how wordy some of them are..
Like -(NSInteger) tableView: (UITableVie...
I need to write code to determine if 2 strings match when one of the strings may contain a small deviation from the second string e.g. "South Africa" v "South-Africa" or "England" v "Enlgand". At the moment, I am considering the following approach
Determine the percentage of characters in string 1 that match those in string 2
Determine...
I try to remove a view from it's superview after being animated offscreen. But it seems when I add the removeFromSuperview call after when the animation is supposed to end, the view would no animate at all but instead disappear instantly from the screen.
So why is there no animation when I add the [[self pickerView] removeFromSuperview];...
I'm working with sockets and trying to simply write a string to the socket. I found a couple of examples on how to do this, such as the following example (oStream is an NSOutputStream). This is all within the NSStreamEventHasSpaceAvailable.
uint8_t buffer[11] = "I send this";
int len;
len = [oStream write:buffer maxLength:s...
I found a c function which I would like to use in my app. Unfortunately, my c knowledge is not great. The first section of code shows the original c code and the second my "translation" to objective c. I have 3 questions I would appreciate help with please:
Is my translation of the variables from their c counterparts to their objective...
Hi
i am new to iphone. i want to eliminate chars from %0A onwards in below url string and %20 also.please any one give some solns.
case:1
http://www.sampleurl.com-feb
1.2161280%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
case:2
%0A%20%20%20%20%20%20http://www.sampleurl.com-feb.html%0A%20%20%20%20%20%20%0A%20%20%20%20%0A%20%2...
Hello guys, I'm having a problem. I have a UIView, that looks like this :
In that view controller I implemented the "touchesBegan:withEvent:" method, but the method is only getting triggered when I touch the bar at the bottom of the view , nothing happens when I touch the table.
How could I change this behavior to be able to detect t...
Hi,
following situation:
in a TTTableViewController i added some Cells with URLs.
they are opening a class with @"tt://photos" for example. this works quite fine.
the first thing is, i saw some urls in TT Examples like @"tt/photos/1". is it possible to fetch this "1" in my photos class and say, for example okay, please open picture on...
I have a class that inherit from UITableViewController, the only orientation allowed is UIInterfaceOreintationPortrait. In this class I'm using the delegate method didSelectRowAtIndexPath: to push another view in which landscape orientation is allowed.
The problem is that when I came back from this view in landscape orientation, the Tabl...
Hello users,
i have the following loop in my viewDidLoad:
for(int i=1; i<[eventsArray count]; i++) {
NSArray *componentsArray = [[eventsArray objectAtIndex:i] componentsSeparatedByString:@","];
if([componentsArray count] >=6) {
Koordinate *coord = [[Koordinate alloc] init];
coord.latitude = [[componentsArray objectAtIndex...
I have a pile of data in the format listed below that I need to convert from 2-digit hex to their respective integer values. Is there anything that I can specify to NSScanner that will take 2 characters at a time for conversion. Or will I need to either break the string up manually (e.g. "D8" "BE" ...) or reformat it to include a delimit...
Hi,
I'm trying to create a cookie and it's not working. This is what I do:
NSDictionary *properties = [NSDictionary dictionaryWithObjectsAndKeys:
@".myurl.com", NSHTTPCookieOriginURL,
@"\\", NSHTTPCookiePath,
@"myCookieName", NSHTTPCookieName,
@"ABC", NSHTTPCookieValue,
nil];
NSHTTPCookie *cookie = [...
What’s considered ‘best practice’ when saving Address Book contacts in Core Data?
I’m writing an iPhone App, based on Core Data, where I need to save and recall Address Book contacts as part of the data model.
In the UI I plan to present a screen where the user can pick a contact from the current Address Book, create a new contact to s...
The following works without issue:
toolBar.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"window_bkd.png"]];
However, I have similar statements scattered throughout my code and wanted to clean it up using the following statements, which crash on executing the first statement:
UIColor *bkdColor = [[UIColor allo...
Is it possible to play a resource mp3 file with the MPMusicPlayerController or do I need to use the AVAudioPlayer API?
...