I have mimicked the iphone keyboard tap sound. My problem now is that the 'Tock' sound is louder than the normal keyboard sound, and it still sounds even when keyboard clicks is disabled in the sounds setting on the phone.
...
I've successfully created my application's Settings.bundle and the items I need within it. I can open the panel in the Settings app, change values, exit the Settings app go back in and confirm they are as I left them.
I launch my app and read those preferences, I don't see the changes - not after the first launch.
However, if I ex...
hi friends i am new to iphone,i want to add a scroll view with "70 Px"on the top of table view and i don't want to scroll to top,how can i do this can any one help please...
thanx in advance
...
in a standard try-catch-error-block, how can i advice the programm to do something only, if no error is thrown ?
for example, if i want to configure a proxy for something ip-based, and if it all works, it should grey-out the button.
...
i want to convert to convert nsstring to integer in objective-c
can anybody help me in solving out this problem.
...
Hi all,
I want to include simple file uploading and downloading [any type of file e.g. .pdf, .pptx ,.txt etc] functionality in my application.
What is the better way to opt for using asihttp or NSURLConnection?
Thanx in advance.
...
Hey i'm new to objective C and developing apps, i'm a web developer and would like to link a certain image in my project to a certain page
(like a href in html)
But i have no idea how to do it.
Any help would be much appreciated.
edit:
Sorry, i should have been clearer. i would like it to link internally to another part of my app. essen...
Does the objective-c compiler in Xcode know better, or is it faster if I use bit shift for multiplications and divisions by powers of 2?
NSInteger parentIndex = index >> 1; // integer division by 2
...
hi,
I have created a simple app in iPhone related to local database using sqlite. Now i want to use
database from server to access sqlite-remote or sql-remote. But i could not get the perfect code to do this. So if any-one can help me to find that code by which I can connect with database from server, then please help me out.
Thanks
K...
Hello,
I've built a static library, to be linked in my iPhone apps. This library uses some global variables and functions, like in C. My problem is, when using for example:
extern
void do_stuff (const int a)
{
return a*a;
}
extern const int a_variable;
extern const int an_array[DEFINED_VALUE];
When I use this function, or access...
Hi all,
Is it possible to get the name of a class into a string like this:
NSString *kls = (NSString *)[self.name class];
NSLog(@"%@", [kls isKindOfClass:[NSString class]] ? @"YES" : @"NO");
I can do: NSString *kls = [[[NSString alloc]initWithFormat:@"%@", [self.name class]]autorelease];
but that seems a bit long-winded to me.
It's ...
Hello guys!
Here's my code for getting the pages from a pdf document and create a pdf document with each page:
- (void)getPages {
NSString *pathToPdfDoc = [[NSBundle mainBundle] pathForResource:@"security" ofType:@"pdf"];
NSURL *pdfUrl = [NSURL fileURLWithPath:pathToPdfDoc];
CGPDFDocumentRef document = CGPDFDocumentCreateWithURL((CFUR...
did apple change language code for china from 'zh' for iOS4?
I internationalized to six languages, now i have upgraded to IOS4 (and coding with sdk4), i test my application and all but chinese are working.
...
I have an iphone app that uses table view as the interface. Each time that the user taps on one of the table cells, I want to show another window to the user. However the user interface of the window that I push into the navigation controller are extremely similar. Therefore I decided to make a "generic nib file" to be used across all th...
When a view must listen the changes on the model and updates view, in other languages we must create and implement observer methods. The view registers itself on that observer methods and wait for the notifications.
This can be do in Obj-C with protocols and registering objects. When some value changes we iterate over our observers list...
Hi,
i want to hide the bar of the UIPageControl, because i want to implement a pagination with swipe gesture function so I don't need to display the dot bar. If I set hidden=YES there will remain a black block with size of the UIPageControl. Is there a way to hide the UIPageControl Bar completely?
Thanks for your answers.
...
How can you increment a integer property?
You can't do self.integer++, you can do integer++, but I'm not sure wether or not that will retain it..
Will the last one retain the value of "integer"?
Thanks.
...
If I declare a function such as:
NSString* createAString(std::string toConvert);
NSString* createAString(std::string toConvert)
{
return [NSString stringWithUTF8String:toConvert.c_str()];
}
I was under the impression that because I didn't call alloc on the string it will be in the autorelease scope.
When I run this code XCodes...
basicly the Location-Controller in my App works. But if it runs over a long time, it gets wrong Positions without recognizing it. I think the gps-buffer overflows or kind of that.
here's my code for the didUpdate-Event
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLo...