objective-c

[iPhone] Customize UIImagePickerController

Hi @ll! I am using the UIImpagePickerController for taking pictures from the build in camera. This is all working fine. My questions are regarding the customization of this controller: Is it possible to change the color of included tabbar in the controller? I want it black. The only thing I found, was to turn the whole tabbar off. I ...

Global variables?

How do I use global variables in x-code(iphone). For example, lets say i want to declare a bunch of variables(NSStrings) in the viewcontroller file, then how would i access them throughout my different classes? Can someone help me? ...

determine location iphone

Hello, from what i read i understand that iPhone can determine your location using Wi-Fi. If you're not in range of any Wi-Fi, iPhone can determine your location using cellular towers. I am currently develop app that use the GPS so my question is when there is no GPS signal (like in buildings)does the location services try automatic to ...

ViewWill Appear method dosent seems to respond while using tab bar and navigation controllers together

hello all I am using Tab bar + navigation based application and I have 4 tab bars when I navigate from one view-controller to other view-controller, viewWillAppear method doesn't seems to respond and I am being forced to call it manually by creating the object of next view-controller. So my question is that I dint want to call viewWill...

how to recognise Single tap using UIWebView

Hi Folks, I am using UIWebView to show a pdf file in my MainViewController. On single tap I want to load a new View to the MainViewController. But the UIWebView is not allowing default UITouch event -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { } How to solve this problem? Regards ...

NSString Converting into a doubleValue after extracting NSString from UIPicker

I have : NSInteger dollarrow = [ValuesPicker selectedRowInComponent:kDollar]; NSString *dollar = [dollarlist objectAtIndex:dollarrow]; double converteddollar=0; I want to do a for loop on this and get the value in double , I am trying this : for(dollar=1;dollar<=99;dollar++) { converteddollar = converteddolla...

iphone username password MD5

I am having one UITextField label as Password and Username. I have to convert UItextField (input from the keyboard) to MD5 and store it to another UITextfield. Code would be appreaciated. ...

How parse html string in iphone

hi all, i m using php file for using data in my application, in this file i post data on the server and if i get the data from the server then it is in html formate. so problem is that i have a string with html tags how i use data in that string. how i extract data from html string. ...

Objective-C tutorial

Can anybody point me to good tutorials for Objective-C? I have searched a lot but i didn't find any. ...

declare global variable in nsobject class (objective C)

Hi, I declare a variable and some methods in the global nsobject class like @interface classGlobal : NSObject { NSString *myGuid; } @property(nonatomic,assign)NSString *myGuid; and i synthesize in the .m class. but when i try to access the myGuid variable in the same class (classGlobal.m) then it shows the error "instance variab...

Problem with NSThread

I have a question; in my program if i call 2 times [self performSelectorOnMainThread:@selector(callDectectionMove:) withObject:[NSNumber numberWithInt:(int)i] waitUntilDone:false]; I create 2 thread or not? Because in my program i'm not sure to create 2 threads. Thanks -(void)callDectectionMove:(NSNumber*)arrayIndex{ NSMutableDictio...

How to save changes to NSManagedObject - iPhone 4.0

Hi. I'm using Core Data to fetch news from the memory and I want to modify the unread attribute after the news is read. Code: //method called from within a UITableViewController -(void) didCloseNews:(NSIndexPath*)indexPath{ //get the newsItem - NewsItem subclasses NSManagedObject NewsItem* newsItem = [self.fetchedR...

In objective-C what's the difference between Type* var, and Type *var ?

Oh the joys of being a memory management noob ! I'm getting bit by some Objective-C code, eventhough I understand the basics of pointers, I've seen these two different constructs, without being able to really understand their difference. Can anyone enlighten me ? Edited my question, the constructs didn't behave differently, instead ...

how to login in twitter using oath

Hi all, I am building a twitter application that is currently using the classic login instead of OAuth. I don't know how to use Oauth to implement login.Please anybody help me to provide some help regarding how to login through OAuth login ...

How to logout from my twitter through classic logout in iphone

Hi all, i am integrating twitter in my application . i have created classic login so that user can enter his username and password.But when once he enters his username and password he remains logged in.So, please help me to logout the user through classic logout ...

iPhone Sdk: [MobileOfferViewController _shouldUseKeyWindowStack]

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 ...

Problem with NSThread

Hi, I have a problem with my code I wanna create 2 different instance with NSThread but i think in my problem these doesn't happen. Can you take my a solution for my problem. I post my code, if you can you may show a solution example? Thanks @implementation myClass -(void)detectMove:(NSNumber*)arrayIndex{ NSMutableDictionary *...

How to start an NSTimer when i click on a button?

How can i start an NSTimer when a user clicks a button? EDIT:i had the code working and everything, but i put the code to hide the button above the NSTimer code, and when i placed it below the NSTimer code it worked! ...

UIScrollView doesn't scroll

Hi. I have a problem with a UIScrollView. I set its frame.size, contentSize (bigger then frame), but I still can't scroll. My program has sctucrure like this: MainMenuViewController -> ScrollBarController -> UIScrollView This is a part of MainMenuViewController's method viewDidLoad ScrollBarController *imgScrollBarCtrl = [[ScrollBarC...

Time CPU Used by Process

I've managed to implement the code on this listing to get a list of all the processes running and their IDs. What I need now is to extract how much time each process uses the CPU. I've tried referring to the keys in the code, but when I try to print 'Ticks of CPU Time' I get a zero value for all of the processes. Plus, even if I did ge...