I've been having alot of problems creating a timer for a iphone application, currently I have a label displaying my timer, but it is just displaying the variable i (2700) in the label, and not decreasing by one every second. Its really driving my head in as this is really my 1st attempt coding in obj C, and for the life of me I cannot ge...
Hello,
Can each index of array hold the NSDictionary?
Thank You.
...
I am trying to setup an NSInovcation system to launch selectors into background threads using performSelectorInBackground: - So far everything is successful when running the system on instance methods (-), but I also want to support class methods (+). I have adjusted my code to provide an invokeInBackgroundThread for both types of class ...
I need a way to create variables that are accessible for the entire time my custom class is initiated to when I call the release function. I need to retain a NSDate and a NSString.
...
Hello,
How do i inverse the contents of NSArray in Objective-C?
Assume that i have an array which holds these data
NSArray arrayObj = [[NSArray alloc]init];
arrayObj atindex 0 holds this: "1972"
arrayObj atindex 1 holds this: "2005"
arrayObj atindex 2 holds this: "2006"
arrayObj atindex 3 holds this: "2007"
Now i want to inverse the ...
can you help out in finding the iphone time through iphone application
...
I am developing an iPhone application from where I need to be able to post a new topic in Yahoo finance message boar at http://messages.finance.yahoo.com/mb/KERX. How do I format the request URL? PLease xcuse my ignorence m very new in this kind of work. I just need the base url to use and the method that will post my topic to the messag...
Take the line
[angleLabelInRadians setText:[[NSString alloc] initWithFormat:@"%.3g", [poly angleInRadians]]];
When creating an NSString object within a message, do I still need to release this NSString and, if so, how would I do that, given that I haven't created a pointer to the object?
Furthermore, is this correct coding procedure...
Hello all,
So I have a functional search app that searches through our company directory. Right now the launch screen goes right too the table with a toolbar to search. I want to modify the interface to launch to a google-esque view with just a simple search bar. I have created a new view and viewController but when I try to add it t...
Hello friends,
I have created one iPad application which downloads images using web services. But my application crashes during manipulating with some high quality images. So my question is what is max memory limit for application running on iPad? When is the application going to be hit LowMemoryWarning on iPad?
...
HI,
I have a NSString that cotains a lot of text. Inside the text is a iTunes URL. The URL is masked with BBCode. How can I extract the plain URL?
Sorry, but my regex skills are really bad.
The text:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam ...
I have a BankAccount model class that contains data like account number, bank name, transactions, etc. The transactions are each instances of the Transaction class and contained in the transactions NSArray.
I also have a BankAccountView that displays all this in a single view. Right now I'm passing all the data as separate variables (ie...
I am saving a UIImage using following code.This image is saved in My application's Documents folder.
NSString *pngPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.png"];
[UIImagePNGRepresentation(currentImage) writeToFile:pngPath atomically:YES];
How to get back this image in Three20 TTThumbsViewContro...
Hi friends..
I am using UITextView In my View , i have requirement to count number of line contained by textview am using following function to read '\n' . However this works only when return key is pressed from keyboard , but in case line warapper (when i type continuous characters i wont get new line char ) . How do i read new char wh...
I have a view where I would like to get an average value of a "percentage" property without loading all the objects (and their other properties) into memory from Core Data. I have found out how to do this in Apple's docs, but the problem is I would like to limit the objects whose percentages are being averaged to ones that have another p...
Hi,
I have created a view which has an object img which is a subclass of UIImageView and I have added the touchesEnded method to the img class. But when I click on the img class object, the touchesEnded event is not triggered.
Does anyone have an idea what may be wrong, please?
Thank you!
...
Hi,
I have a table view with one section. I pull the data down from the internet in small chunks asynchronously in the background. The problem I have is I don't know how many records there will be in total. When the web service stops returning data I know I have them all, in some cases the rows might be infinite.
The method:
-(NSI...
NSMutableString *str;
//I have already done the allocation etc
Suppose this str has some value.
I set str=@"" it shows a warning. How to set the NSMutableString as Null?
...
\/images\/content\/booking_thumbs_uk\/s_kl\/50000\/THB_999_H54007.jpg
changes to:
/images/content/booking_thumbs_uk/s_kl/00000/THB_999_H2470.jpg
...
I've got some code to load an image from a URL, it seems to work ok. Unless the URL contains curly brackets. This seems like it is a string formatting problem? I can't figure it out.
ex
@"http://site/image.png //works
@"http://site/{image}.png //doesn't work
NSString* mapURL = @"http://site.com/directory/{map}.png";
NSLo...