I'm trying to detect input from the mic and also play sounds, which can be toggled on or off, but are always playing when the mic listener is active.
I've initialized my AVAudioSession in the viewDidLoad method like so:
AVAudioSession *session = [AVAudioSession sharedInstance];
NSError *err = nil;
[session setCategory:AVAudioSessionCat...
The D3DXMatrixRotationYawPitchRoll() function builds a matrix with a specified yaw, pitch, and roll. Is there an equivalent function for iphone developers??
I found a beautiful little sample project for drawing a winding road or rollercoaster here.
It's not a lot of code, and the comments seem mostly understandable, but the code is re...
Hi,
As title says, I'm wondering if stacking subviews can slow down an iPhone application.
For example, I have a UIViewController, which has a view occupying the whole screen. When the user presses a button, I create a second view controller and add its view as a subview of the original VC, making the second view completely hide the fi...
I was aware of multiple scrolling libraries (TouchScroll, iScroll) for the iPhone/iOS due to its inability (???) to support overflow:scroll . However, I was not aware (and I am looking for confirmation) that IFRAMEs don't really work either. It appears that the iframe doesn't respect any attempt to give it a fixed size and always just re...
I have a simple UIView *myView which is set as follows
myView.image = [UIImage imageNamed:[NSString stringWithFormat:@"%d.png", r]];
this takes the index r and gets that image, all works correctly in my two IBAction methods
-(IBAction) previousImageSelector{
if (r != 0)
r = r - 1;
NSLog(@"r is%d",r);
myView.image = [UIImage imag...
I keep getting bad instruction or bad exception so I enabled NSZombieEnabled and the other vars needed, and I have no idea how to analyze the results. This is what was logged:
ToDoWall(1634) malloc: recording malloc stacks to disk using standard recorder
ToDoWall(1634) malloc: stack logging compaction turned off; size of log files on d...
Hi I am currently trying to building a reader app for the iphone, a bit like NYTimes iphone app or Time magazine or USA today iphone app. Basically I'll be parsing a feed containing articles, saving the data locally in a database and displaying stuff and all that.
Now I am just starting off with Iphone app development, I would just like...
I have an iPhone app, with a tab bar controller. Before the tab bar is loaded, I present a modal view for registration. Once registration is completed this view is dismissed, and the tabs appear, with the "News" tab selected. For some reason, even though the News view is displaying, the viewDidLoad method of the News class is not being c...
I have some code which does recording/seeking/playback using AudioQueue using either PCM or IMA4. Now this code is working fine on the simulator but when it's time to use on the iphone playback gives the error -66674 on AudioQueuePrime. I am mostly curious as to what are possible causes to this error as the documentation leaves much to...
My application on the iPad allows users to browse remote photos on their photo sharing site and optionally download whole albums of photos to the application's local directory (Documents) for offline viewing. I'm running into a problem where after a user has downloaded several (large) videos for offline viewing, they come back later and...
I want to take a photo with the device's camera, overlay a CALayer on top of it, and export the photo at the native resolution of the device's camera.
The best solution i could come up with so far, was to overlay the CALayer on top of the UIView, and capture the current view state using [CALayer renderInContext:]. However the result of ...
Hi guys, I need a way of creating a UIView dynamically. Thus, the parent class could look for say a count of array items, and create UIViews on the fly of the amount of items in the array.
The views need to be allocated dynamically, do I can't create them on the fly.
Can you help?
...
My app was all linked correctly. I launched it today and had a look at my 2 additional view, and their links are broken. It says the view is not defined in the class anymore, as well as one method I have still there is not being seen by interface builder?
How can these links be fixed?
...
Hi guys.
This is the problem I'm facing right now:
I've got a lot of UITableViews with two sections each (only one is displayed at any time, on demand). The first section has got 3 cells, which might need to be resized. Because of that, I'm using heightForRowAtIndexPath.
The second section might have up to 3.000 cells, all using the d...
I have a Core Data app that has a bug that causes the app to crash and I have not tracked down its cause yet. One of the results of the crash is that the next time the app is started up it can not open the persistent store used by the application previously. The following error is returned from the addPersistentStoreWithType: method:
...
Hello,
I have a problem building applicatin with tabBarController.
There is no problem doing tabBarController with navigationController if I build it from AppDelegate.
But now I have experienced problem when I want to create new view with tabBarController (3 tabs and each has navigation controllers) after a push from previous navigatio...
I have the following scenario:
My iPhone app receives a stream audio via Bluetooth in "real-time"
Then, my iPhone app "forwards" this stream audio to a browser (Firefox) via Internet in "real-time"
I can do #1 with Core Audio Remote IO.
But I am not sure how to do the #2. It seems to be similar to a Skype capability.
What is the b...
Hi everyone.
I would like to have something that would kind of replicate the details view of the recent calls tab on the iPhone phone.app.
When viewing the recent calls, tapping the disclosure button takes me to the view pictured here: http://img337.imageshack.us/img337/3456/recentcalls.jpg
I would like to know if that area in blue r...
I am trying to compare two NSDates one is created by the viewDidLoad method and the other by clicking a button. I want to be able to click the button and find the time difference since the viewDidLoad was ran. I keep getting a difference of nil. Any Ideas?
#import "TimeViewController.h"
id startTime;
@implementation TimeViewControlle...
I read an article somewhere explaining that apple uses OpenGL ES to implement the page turning effect in the iBooks app. Since you can perform 3D animations on 2D Layers using only Core Animation, what might be some reasons you'd have to use OpenGL ES to create that page transition animation?
Thanks in advance for your thoughts!
...