Hi, I have the next question,
if possible to write in a .plist datas in runtime, because my app make a lot of connections and i would like to save this datas (after parsing) in a plist, for later read this datas.
Is it possible? because i'm trying and for the moment i can't.
Thanks.
...
I have an app that needs to connect and receive data, different each time that you click in one tab.
Then to show the data to the user, i use a "element.plist" where i have one array of dictionaries( each dictionary has the info in different strings: name, category, ...). I load the info from this plist.
I would like then, to continue u...
Does anyone know how to create a CGGradient that will fill my view,
my current code is this and it fill the UIView with a red rectangle I want to have a gradient (from black to gray for instance) instead of the rect :
- (void)drawRect:(CGRect)rect {
CGContextRef context=UIGraphicsGetCurrentContext();
CGRect r;
r.origin.x=00...
I'm looking for an easy way to parse a string that contains an ISO-8601 duration in Objective C. The result should be something usable like a NSTimeInterval.
An example of an ISO-8601 duration: P1DT13H24M17S, which means 1 day, 13 hours, 24 minutes and 17 seconds.
...
I'm having trouble coming up with an RegExKitLite expression that will match. I'm parsing a string and I want it to grab everything till it comes upon the first occurrence of a colon
What would be the expression in RegExKitLite to do that?
Thanks!
...
Hi,
I'm developing for iPhone, objective-c. When we use autorelease, when does the object actually get released - when the main autorelease pool gets released (ie. the application terminates?), or as soon as the local function ends? For example, I want to do something like this:
- (void) test
{
MyObj* p = [[[MyObj alloc] init] aut...
I used to think I was a reasonably intelligent person.
apple's "threading programming guide", has shattered my ego sustaining self deception.
I have a method I want to run repeatedly on a secondary thread, in the example below I've called this doStuff:
I want to be able to repeatedly stop and start the repeated calling of this method.
...
I am using the following dictionary to create a MIME header, to send an email that attaches a text file. It produces the email below the code. Why is everything garbled? Any MIME experts out there?
Also, the answer is not as simple as you are Base64 encoding it. If I change it from "inline" to "attachment," the email attachment is corru...
Is there any sample code that uses Amazon SQS in objective c code so I can well understand how to use it
...
I want to implement paypal in my application and it is purely objective C based.
How should I do that? I searched a lot but could not get any proper guidance?
...
Hello,
I would like to have a UITableViewCell stay lit (blue) after i call cell.selected = yes. is this possible? do i have to go another way about it (as in not cell.selected)
thanks!
...
Hi, all
I have long integer value ( ex: 2705758126 ) in NSString.
When i try to show it: NSLog(@"%i", [myValue integerValue]); it return: 2147483647.
How to show, compare and etc. this long integer
...
Is there a way to simulate handwriting using quartz?
I mean there is a path between points A, B and C.
I want path to come out of point A and go animated to point B and then C.
What comes to mind is two options to do it:
Ugly- Create path then mask it and move mask around to reveal a path.
Takes a lot of time to create and unrelia...
is there a way to hide the status bar when showing splash screen in iphone?
and show again in application
...
I have been looking through the questions asked on StackOverflow, but there are so many about memory management in Objective-C that I couldn't find the answer I was looking for.
The question is if it is ok (and recommnded) to call autorelease before adding a newly created object to a collection (like NSMutableArray)? Or should I release...
Hi,
In my app I have connections with a web service and I would like to create a loading view to show each time the connection starts until it returns a response.
Where is the best place to put this view in my application and what is the best way to implement it?
Thanks,
Fermin
...
Hello,
I would like to ask you how can i implement the next:
I have a tabBar where each tab make one different connection to one web service, and should show a different data.
I would like to save this data "somewhere" and from it place load the different tabs.
Where i should save this received data?
Thank you,
Best regards
...
I've got some (I think) pretty basic code for creating cell content from a data source, and everything works fine when the display loads. However, when I start scrolling around to view other text (up or down) the code fails with 'GDB: Program received signal: "EXEC_BAD_ACCESS"'. Here's the code that fills out the display for the various ...
I'm looking for a way to determine the second frontmost app. Here's what I mean by that.
Let's say I launch three apps in this order: Xcode, Interface Builder, and my application. If I press Command-tab, I should see four applications in the switcher: (from left to right) my application, Interface Builder, Xcode, and Finder.
Let's t...
I have a class that I've made into a singleton and am able to save it's state using an NSKeyedArchiver, but I can't wrap my head around pulling it's state back out.
In the function that does the loading I have
Venue *venue = [Venue sharedVenue];
NSData *data = [[NSMutableData alloc] initWithContentsOfFile:[self dataFilePath]];
NSKeyedU...