i am working on an application where i am using LIBXML parser for parsing and nsurl for loading image as i am getting image url after parsing.
- (void)parser:(myLIBXMLParser *)parserP didParseObjects:(NSArray *)parsedObjects{
if(!isScrollViewCreated){
LibParser *p=(LibParser*)parserP;
NSUInteger i=[[p.dOtherValues valueForKey:@...
I have checked using instruments and not found any memory leaks.
when i check in device it shows memory leaks with responsible caller -[NSKeyedUnarchiver decodeObjectForKey:] and object is UIRoundedRectButton.
I still not using NSKeyedUnarchiver or any type of decoding. Is following code, is responsible for this memory leak ?
- (void)s...
Hi all,
I have 2 scenarios and I want to know which way is correct and better?
-(Employee*) getCustomEmployee{
Employee *emp = [[Employee alloc]init]; // no autorelease here
//do something with emp
return emp;
}
-(void) process{
Employee *emp = [self getCustomEmployee];
//do something with emp
[emp release]; //rel...
Hi all,
I want to clarify whether there is a memory leak in this code? As far as I feel its there.
in .h file
@interface MyClass{
NSMutableArray *dataArray;
}
@property(nonatomic,retain) NSMutableArray *dataArray;
in .m file
-(id) init{
self. dataArray = [[NSMutableArray alloc]init];
}
-(void) dealloc{
...
I am designing a web app that fetches data every time a user logs into his/her account. The data is an xml file containing image links and some text. I want this data (after image fetch/load from the actual link) to be stored locally so that every time an user opens the app it doesn't have to load everything from scratch. Locally stored ...
Hi everyone,
I am new to iPhone OS App development. Can somebody explain whats the difference between
IBOutlet UIButton *myButton;
@property (nonatomic, retain) IBOutlet UIButton *myButton;
As far i understand the first line was used earlier and now we can use the 2nd line. Theres absolutely no need to write both of them. Any ide...
Hi,
I have a memory leak, so i tried to debug with nszombie....
And NSZombie printed this:
-[MobileOfferViewController _shouldUseKeyWindowStack]: message sent to deallocated instance 0x6307580
So my question: what is the method: shouldUseKeyWindowStack??
Found nothing on Google....
Thanks,
Martin
...
Following the PageControl sample code on the Apple site here, i have created my application based on that.
I have a grid of buttons, which need to change based on the current page. Where would be the best place to set up my array containing the buttons? In the -initWithPageNumber method or in -viewDidLoadof the view controller? In -view...
Is this proper memory management? What I'm wondering is if I am supposed to release after the alloc in -viewDidLoad.
SomeViewController.h
#import <UIKit/UIKit.h>
@interface SomeViewController : UIViewController {
UIButton *someButton;
NSString *someString;
}
@property (nonatomic, retain) IBOutlet UIButton *someButton;
@prope...
Hi All,
We have a scenario to access the iphone disk space like the following,
1 . user will put a file in the disk space and runs the app
2. The app will have to access the disk space and identify the file posted by the user.
3. i might pull the file into the app and parse and do the business logic.
is it possible by any chance, i se...
I'm building an app for iPhone/iTouch that I also want to run on iPads (not a universal app, but one that just runs on on iPad with the 1x/2x button in the lower right hand corner).
I'm using iPhone SDK 4.0 and setting the following:
Base SDK: 4.0
iPhone OS Deployment Target: 3.2
When I do this, I can build an app just fine and run ...
I've got a UISearchBar in my view, and when the results button is pressed I'd like it to load in a new view. Is this possible without using a navigation controller?
I'm new to iPhone development so not entirely sure if moving between views is solely reliable on a navigation controller or not. From all the examples I've seen using pushVi...
how to generate html to pdf file in iphone i need this for iBook applicaion
i got html file but here problem is that i can't do paging in webview so i convert html file into pdf then it is working.
if any body knows the send sample code or link
thanks...
...
Hi all
I have a application in apple strore and I want to add advertisement for this apps. Do you know any management tool for manage advertisement? (I want to add advertisement and delete it ... in this tool)
...
hi,
My app has 2 table view, Tablview A leads to Tableview B. When i change something in TableView B and press back button i got to make a change in tableview A. How o find out that a view is just poped from a stack and displayed ? is ther any delegate which shows this message ?
...
I have an application. i want to add in-app purchase.
I want to put one chapter purchasable. its already in the application just unlock it through plist.
so when user do purchase i dont want to download anything. just want to change the value in plist.
so is it possible? without downloading new build. can i unlock that chapter?
thank...
Hi all,
I developed a project for the base sdk 3.0 and now I have installed xcode3.2.3. Now when I am trying to build my project it says missing sdk 3.0. And when I am trying to set the base sdk from the project settings there is no 3.0 sdk available in the list. Only 4.0 is available. So my question is how can I add 3.0 sdk in the new ...
Hey there,
I am trying to use MobileSubstrate to have a socket listening on a port on various UIKit applications. However, when my extension hooks into MobileSafari, MobileMail or MobileMaps, it is unable to successfully create the socket. I found this page on the iPhone Dev Wiki which clarifies the issue: http://iphonedevwiki.net/index...
hi
hopefully a simple question for anyone who knows what they are doing...
I have a string variable with user input text.
I then bring up a email view based on Apples example MailComposerViewController and I want the text to populate the body of the email.
In as simple as possible terms how do I get the string variable into emailBody...
I'm getting a very strange crash due to iAd. Here's the debugger output:
2010-07-29 17:25:57.032 MemoryMatcherFree[5326:307] -[__NSOperationInternal bannerViewDidLoadAd:]: unrecognized selector sent to instance 0x13fda0
2010-07-29 17:25:57.051 MemoryMatcherFree[5326:307] *** Terminating app due to uncaught exception 'NSInvalidArgumentE...