I'm using an AVAudioPlayer to manage some sounds but the isPlaying method seems to be crashing.
done when I initiate the page:
self.soundClass = [AVAudioPlayer alloc];
how I play the sound:
-(void)playSound:(NSString *)fileName:(NSString *)fileExt {
if ( [self.soundClass isPlaying] ){
[self.soundClass pause];
}
...
I have the following code which is producing this error. I cannot understand why the subarrayWithRange message is being sent to a string? When it is clearly an array?
static const int kItemsPerView = 20;
NSRange rangeForView = NSMakeRange( page * kItemsPerView, kItemsPerView );
NSMutableArray *temp = [[APP_DELEGATE keysArray] mutableCo...
Is it not possible to access the Assets library in the background even with UIBackgroundTask? Do the enumerators work only when the application is in active state?
Also, can one use the "assets-library://" url with NSURL or other API apart from the Assets-Library framework?
Thanks!
...
Hi All,
I have a View Based application template project and I want to load a UITabBar when the user presses a button in the view. The tab contains 2 tables. I tested this thing that is UITabBar with 2 tables on a windows based application and it works there, but when I tried to have it with the a View Based Application I am only able t...
I am very new to this and i am sorry to ask this question.
I am trying to get this to work for my code but just don't get it. Whatever i seems to do the key that i press show up in the NSLog one key stroke after. I know that the 'shouldChangeCharactersInRange' works this way and i have surfed and tried to test some solutions i have foun...
Hi guys,
I've successfully put together a mapview with a pin annotation representing the users current position that updates at a set interval. When the location manager updates the user's position, the pin annotation disappears and reappears at the new location. Has anyone played with getting the current user's GPS location to update th...
I want to dial a number from IPhone simulator for India. I have tried this on a button click:
-(void)makeaCall
{
NSURL *phoneNumber = [[NSURL alloc] initWithString: @"tel:1-800-180-2222"];
[[UIApplication sharedApplication] openURL: phoneNumber];
}
But it's not showing any action of dialing any number.
Please help me with this.
...
i am developing an application in which i am trying to record a video using AVCaptureSession class...i came across a few good tutorials like this one
http://www.benjaminloulier.com/posts/2-ios4-and-direct-access-to-the-camera
but in these tutorials only capturing images from the video frames is done while i want to record a full le...
My application has a sqlite database and i m using executeQuery methods to retrive and insert data.
Problem
I cannot assign integer values cells of tableview. It does not display data which is in integer format. i want to store integer values into a tableview and show sorted integer
data to user.
Here i am posting my code
1) in vi...
can i remove the main window in the iPhone app and add a new one?
...
Hi all,
I am implementing MKMapView based application. In that I showed the current location with a pin. When my current location is changed the pin is blinking to the updated location. But my requirement is to stop blinking and make an animation or move the pin smoother with out blinking. I tried in many ways but I didn't find a soluti...
How can I quit iPhone4 app? When I use exit(0) the app goes in the background. I want to quit the app instead of sending it to the background.
...
Hi,
I have a View Based application and I have added a UITableView in the view with navigation bar and tab bar. But now when I try to add the MFMailViewController on the same view when there is no table or tab bar it does not work at all. I am using the following the code to add MFMailViewController
MFMailComposeViewController *mai...
Hi there
Just started with Sencha today and found it a bit overwhelming. Was able to get a nice custom tabbar working, and top nav panel, however am stuck from where to go.
Decided it might be a lot easier to just use JQTouch and a Phonegap TabBar instead. I found: http://phonegap.pbworks.com/iPhone%3A-UIControls-(TabBar)
I'm on the...
I would like to animate my subviews movement when rotating the device, changing the alpha to 0, move the view to the new position and reset the alpha to 1.
Using this code in didRotateFromInterfaceOrientation causes the view to flash and fade very quickly and then reappear. I would like to avoid this behaviour.
[UIView animateWithDurat...
I have two questions?
Is it possible to retrieve voice call and data traffic statistics (like number of calls, call duration, data packages sent /recieved (kB) etc) using iPhone SDK 4?
Is it in some way possible to have an application as a background service and make use of local push notifications (alarm) in order to have the app retr...
Hi , i have UITExtView with (511 , 369 , 571 , 519) context , so my keyboard popups on UITextView and filled some space on the screen , when users type some notes , the UITExtView
text moves under the keyboard , i was wondering how should implement specific context for textView to begin scroll down . i use this code but doesn't work ...
Dear iPhone Developers,
I have an instance method which is meant to return a string
- (NSString *)newFile:(NSString *)inFile andFileNumber:(NSInteger)aNumber {
return [NSString stringWithFormat:@"%@.o%i",inFile,aNumber];
}
I call this method as
outputFileName = [self newFile:inputFileName andFileNumber:newNumber];
// where input...
Hi all,
is iphone sdk 4.0 supports UIBezierPath since in documentation they told its available above 3.2 but they didnt told it is available in iphone or it just only for ipad.
...
Hi all,
This may be a simple problem. I have a UIScrollView with 3 views. I need to display 3 dots like Indicator ( to indicate there are more pages to the user). How do i do this?
Thanks
...