I am trying to create something similar like Piano app on the iPhone. When people tap a key, it play a piano note. Basically, there will have only 7 notes (C) at the moment. Each note is a .caf file and its length is 5 seconds.
I do not know if there is any way to save the song user played and export to mp3/caf format? The AVAudioRecord...
By default, if you tap the spacebar twice on the iPhone or iPad, instead of getting " " (two spaces), you get ". " (a period followed by a space). Is there any way to disable this shortcut in code?
Update: Disabling autocorrection via UITextInputTraits doesn't work.
Update 2: Got it! See my post below.
...
I have a UIView container that has two UIImageViews inside it, one partially obscuring the other (they're being composed like this to allow for occasional animation of one "layer" or another.
Sometimes I want to make this container 50% alpha, so what the users sees fades. Here's the problem: setting my container view to 50% alpha makes ...
Is it possible to change the font size of tabs?
...
I have a view with a class called "drawingViewController", and I have the drawRect method:
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);
CGContextMoveToPoint(context, 0.0...
I'm trying to make a HTML5 webapp that simply plays a sound over and over and over again, on my iPhone. I don't know any Obj-C to do it natively.
What I have works fine, but the sound only plays once:
<!DOCTYPE html>
<html>
<head>
<title>noisemaker!</title>
<meta http-equiv="content-type" content="text/html; charset...
Are dylibs and frameworks already in an iPhone, or does my app actually incorporate them?
Also, in Xcode I see dylibs with identical names. Sometimes the subsequent names are incremented, as in libz.dylib, libz.1.dylib, libz.1.1.3.dylib, and libz.1.2.3.dylib.
If I have to include libz, should I use the one with the highest rev number, ...
I've got a int, that is changed in a previous method, that now has to be part of the name of a button variable. For example:
int numberFromLastOne;
numberFromLastOne = 4;
I then want to get 'button4' to do something.
Could I use something like this?
[[button@"%d", numberFromLastOne] doSomething:withSomethingElse];
I've never had t...
I have a root UIViewController which has a property called webView. WebView is a UIViewController with a XIB that contains a UIWebView. From my root view I modally (is there any other way?) load the webView ViewController and set its URL, always to the same page.
I discovered that if, after loading the webView, I used its default Web pa...
Trying to get my Universal app released and I rely on AdMob ads for revenue in this particular app. I'm having an issue getting AdMob support working, though I keep finding references to people actually running AdMob on their iPad Simulators.
Terminating app due to uncaught
exception
'AdMobInvalidLibaryVersionException',
reaso...
I have a view controller that is created by the app delegate - it's the first one shown in the app.
In its interface I declare
float lengthOfTime;
I also set it as a property:
@property (nonatomic) float lengthOfTime;
And in it's implemetation:
@synthesize lengthOfTime;
In the class viewDidLoad method, I set the value:
self.le...
While uploading a photo to the facebook, using facebook api for iphone, can be also add a comment to photo.Can anybody suggest a way to do it
...
I am showing PDF content on a view using this code using Quartz Sample:
// PDF page drawing expects a Lower-Left coordinate system, so we flip the coordinate system
// before we start drawing.
CGContextTranslateCTM(context, 0.0, self.bounds.size.height);
CGContextScaleCTM(context, 1.0, -1.0);
// Grab the first PDF page
CGPDFPageR...
Hi,
I'm a beginner level programmer trying to make a game app for the iphone and I've encountered a possible issue with the memory management (exc_bad_access) of my program so far. I've searched and read dozens of articles regarding memory management (including apple's docs) but I still can't figure out what exactly is wrong with my cod...
hye all,
i have built a SQLite database and wanna to add into iphone app. already i have add it resource->add->x.sqlite and also add libsqlite3.0.dylib.framework but i don't know what is the showing code. I wanna to show the data in the db when user pressed button.
Can anyone help me to give an example on how the db can be view when bu...
what the procedure of display image in particular UItableview(grouped) cell iphone ?
...
I want to play any file for 6 seconds. Also suppose the audio is bigger then 6 sec the application will play only for 6 sec.and if it is less then 6 sec then play continuously. So is there any inbuilt option from any framework?
...
Hi,
I have an NSDate object called 'dueDate'. I'm trying to work out how to display if the due date was yesterday or is tomorrow. How would I go about this?
...
In my viewForAnnotation delegate, I create a MKAnnotationView with leftCalloutaccessory as a info button. When the info button is tapped, I want to replace it with a UIActivityIndicator. So in the calloutAccessoryTapped delegate, I wrote
view.leftCalloutaccessoryView = [UIActivityIndicator indicatorWithStyle:UIActivityIndicatorWhite];
T...
We have a web site that sends emails with http links on that email. As the recipient clicks on the link, they are directed to our web site. How can we get the IPhone to include the latitude and longitude of the device?
...