how to make timer counter zero in this particular code when I click on the reset button
the values must go to 00:00:00 and when i click on start button timer should be start from starting
please help out
code here
this in the .h file code
-(void)start
{
timer1 = [NSTimer scheduledTimerWithTimeInterval:(.01) target:self selector:@...
Hi guys,
Here Im getting leak at the NSURL connection in my libxml parser can anyone tell how to resolve it.
The code where leak generates is:
- (BOOL)parseWithLibXML2Parser
{
BOOL success = NO;
ZohoAppDelegate *appDelegate = (ZohoAppDelegate*) [ [UIApplication sharedApplication] delegate];
NSString* curl;
if ([cName length] == 0)
{
...
I have to run my app in iPhone OS 4.0. (in simulator).
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self newLocationUpdate];
}
-(void)newLocationUpdate
{
locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
[locationManag...
i am try to making a timer counter in my application but i did't get right ans
i succes to make timer counter but i dont know how to start timer with accelerometer
i wan't when i take steps then my timer should run or when i stop then my timer should stop
i have steps counter with the help of acceleration hardware
this is my tim...
Anyone know of an existing function or property that provides a count of the records in a core data entity that I'm missing in the docs?
Any help appreciated
Thanks // :)
...
hi,
I have done an application for iphone 3GS and now i want to upgrade the same app to work better for iphone 4 with multi tasking...
Can any one help me in making this...
My doubt is should i start the project from the scratch making for sdk4 or adding few methods to the existing will reach the target...?
Waiting for reply...
...
I'm using core-plot to display data that doesn't pass through zero on x or y axes, and I'd like the axes to be displayed too. The data is displayed correctly but the axes aren't shown at all. I see that the API has changed recently and it appears that the property to use is isFloatingAxis but I still can't get it to display. My code is b...
I have to save some 100 sentences in my app. Each sentence is around 50-90 characters. I can create a .plist file for this. But i dont want to read the whole .plist file, just want to read a specific index. Is it possible?
...
I would like to list all phone numbers (or any other field) of people in the addressbook.
I've written the following code:
- (void)addressBookFill{
ABAddressBookRef addressBook = ABAddressBookCreate();
people = (NSArray*)ABAddressBookCopyArrayOfAllPeople(addressBook);
[addressBook release];
}
- (void)printAddressBook{
...
I have a string "So: lets make some noise!" and I would like it to be displayed one word at a time on the screen. How can I go about this? NSScanners? I am new to objective C and really need some help... thank you!
for example. the first word i see is "So:" the second word i see is "Lets"...with the last word being "noise!"
It must be c...
I’m a bit confused as to what happens exactly in Nib-based UIViewControllers. When generating a UIViewController subclass, the template contains a very specific comment in the viewDidUnload method:
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
To which subviews does this apply?
The ones I initialize...
Hi,
I assume according to "Cocoa design patterns" book i'm reading that the retain function is implemented using something like this :
- (int)retainCount
// Returns the receiver's current reference count
{
int result = 1; // receiver not in table, its count is 1
void *tableValue = NSMapGet(
[[self class] _myRefCountMapTable], self);...
Hi all
i am new to objective c programming I want to call a function within anothor method please give me idea.
-(void) grabRSSFeed:(NSString *)blogAddress {
// Initialize the blogEntries MutableArray that we declared in the header
myBlogEntries = [[NSMutableArray alloc] init];
// Convert the supplied URL string i...
I am reading JSON data back from a server, and I am trying to parse a particular string that contains an HTML URL. The data is in an NSString called current_weatherIconUrl2. The console output from Xcode is below:
2010-07-06 17:17:46.628 WhatToDo[13437:20b] Current Condition: URL2: (
"http://www.worldweatheronline.com/images/wsymb...
I try to calculate a miles per hours. For this I write a code like this
mint=sec/60;
hour=mint/60;
mph=miles/hour;
nsstring *speed=[nsstring stringwithformat:@"%5.2f",mph];
[mph settext: speed];
I get a miles from this code
miles = (steps *steplength)/1500;
NSString *distance =[NSString stringWithFormat:@"%5.3f",TotalDistance];
[Mi...
Using a UINavigationViewController, how do I find out how a view has appeared?
The view has either appeared in a straightforward manner, as the first view in the UINavigationController stack. Or it has appeared because a second view has been popped and the first view has revealed itself again. How do you find out which of these happened...
Hi, I'm developing painting app. I've tried to do it with CoreGraphics/Quartz 2D and drawing curves algorithm is pretty slow. So we've decided to switch to the OpenGL ES.
I've never had any OpenGL experience, so I found glPaint example from apple and started play with it.
I've changed erase method do make white background.
How I stuck...
Recipe example
RecipeAddViewController *addController = [[RecipeAddViewController alloc]
initWithNibName:@"RecipeAddView" bundle:nil];
addController.delegate = self;
Recipe *newRecipe = [NSEntityDescription
insertNewObjectForEntityForName:@"Recipe"
inManagedObjectContext:self.mana...
I have a method:
- (CGPoint) calculateVectorBetweenThisPoint:(CGPoint)firstPoint andThisPoint:(CGPoint)secondPoint
{
float xDif = firstPoint.x - secondPoint.x;
float yDif = firstPoint.y - secondPoint.y;
return CGPointMake(xDif, yDif);
}
And I try to invoke it as follows:
- (float) angleBetweenThisPoint:(CGPoint)firstPoin...
I have one view holding a list of videos(buttons which can be clicked, each hold a url) which currently bring up a new view which holds the UIWebview, the only problem is I cant pass the url to the webview depending on which button was clicked.
At the moment I just get an empty UIWebview.
How can the url string be passed to the webvi...