Hi,
I have a protocol say
@protocol MyProtocol
-(void)mload
@end
with a method mload, I also have ClassA which has implemented that protocol method ie mload.
@implementation ClassA
-(void)mload {
NSLog(@"ClassA-mload");
}
@end
Now I need to call that method in another class say ClassB using an instance of ClassA. How to do th...
I want to put the notification in the tab bar of the app to show the number of item selected for the shopping list.
Is there any way to add the notification in the tab bar of app.
...
How to tell Xcode to save the source code automatically without prompting, each time I hit on the build and run?
thanks in advance
...
Perhaps this is the wrong way to go about this, but it seems like such a clean and workable approach that I wonder how I can make the compiler warning go away?
@interface SomeView : UIView {
NSString *stringOfsomeImportance;
RelatedClass *niftyService;
}
@property (nonatomic, copy) NSString * stringOfnoImportance;
@property (nonatomic...
I need to check if a char is digit or not.
NSString *strTest=@"Test55";
char c =[strTest characterAtIndex:4];
I need to find out 'c' is a digit or not. How can implement this check in objective C?
...
What is the equivalent for Vector's of Java in Objective-C?
...
I have a NSTextField object in my window which has to be disabled when a check box is clicked.
I have written a IBAction to receive the check box click and disabled/enabled the text filed based on the check box state.
[mName setEnabled: [mNameCheck state]];
This work fine with the basic functionality, but I found some strange behavio...
Hi guys, I'm trying to detect current user address using MKReverseGeocoder passing coordinates obtained via CLLocation class. Reading MKReverseGeocoder Class Reference I noticed that
The Google terms of service require that the reverse geocoding service be used in conjunction with a Google map; take this into account when designing y...
hello,
I've many classes in my XCode project, and only the class from where the control comes from main.m will be having applicationDidFinishlaunching method. in my other classes will the methods in it knows how to go to its own method implementation, or do i need to write init method?
...
How would I send a command to a Mac (which has network sharing turned on) over the Wi-Fi network that both it and the iphone is connected to? In my case I want it to open an application.
...
Hi Guys,
I've got a problem when retrieving the primary key value of the last inserted row in the database.
I have a table of name wineDetails which contains more than 2000 wine names. I display the names in alphabetical order.
When I add a new wine name into the wineDetails table, the new wine name primary key is 2001 in the database...
I want to add the plus button to right side of the table view to add the content of the that cell in other view.
how to add the plus button in the right side of the table view.
...
I want to filter the accelerometer values using a moving average, how is this done?
Thanks
...
I have a NSArrayController bound to NSUserDefaultsController, and the array stores a custom class of mine, which conforms to NSCoding.
It seems like I need NSArchiver, but I can't quite figure out how to glue it all together
...
How to do audio latency test in iphone os ? I don't have a clear idea about that. Now am reading a caf file like this .
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"tick" ofType:@"caf"]; UInt64 gTotalPacketCount=0;
UInt64 gFileByteCount =0;
UInt32 gMaxPacketSize =0;
UInt32 size;
OSStatus err = noErr;
AudioFileID fil...
I want to be able to make image move realistically with the accelerometer controlling it, like any labyrinth game. Below shows what I have so far but it seems very jittery and isnt realistic at all. The ball images seems to never be able to stop and does lots of jittery movements around everywhere.
- (void)accelerometer:(UIAccelerometer...
Hi
I have a very simple table and when tocuh a cell it opens a new view with one UITextfield. All I want is that the keyboard will automatically opens, without the user have to touch the UITextfield.
Its all done in Interface Builder, so I am not sure how I do this. I guess I need to set the focus at some point ?
Thanks
...
Possible Duplicate:
How do I concatenate strings in Objective-C?
hi im working with iphone sdk and i need to add string to another string like in java is
the ' += ' but in objective-c i don't know.. thx for help!
...
I'm trying to load an image into my NSImageView/NSScrollView and display it at actual size, but the image mysteriously ends up getting displayed at about half-size. I thought at first it might be being reduced to fit into some kind of constraints of the frame etc., but soon realised this couldn't be right because if I physically enlarge ...
Hi,
My question is quite simple (I think and hope). I would like to know what happens when I lock my phone.
I made a little clock-like app which should play and loop a sound at a given moment (lets say 18:00). But when I press the power button, and the phone locks, nothing happens at 18:00. When I press the power button again 18:05 and ...