In the Memory Management Programming Guide for Cocoa Apple talks about Top-Level Objects. They say, that I need an Outlet for each of them.
If there are any top-level objects you
do not store in outlets, however, you
must retain either the array returned
by the loadNibNamed:owner:options:
method or the objects inside the arra...
Hello all,
I am getting raw aac data from web stream and try to put it in ADTS frame in order to play it on iPhone.
It works for 10 seconds then sound stops and restart but seems accelerated or mixed with others audio data.
Quicktime and others audio app are unable to open my file.
It seems my ADTS header is wrong but I am unable to...
normally when you touch the text input area, the keyboard pops up and when you touch the empty area of screen, the keyboard disappeared. How to make that happen?
just like what we experienced on iphone safari...
Thank you
...
I was wondering what amount of time is required to convey information regarding the tilt and position (not gps) of one particular iphone to another. Could 2 iphones send and receive this information simultaneously? What about 3 iphones? I'm interested in an application that is able to simultaneously send and receive and make conditional ...
Hello,
I would like to know differences between these different audio envelopes.
and when to use one instead another one.
Sorry if my question seems stupid...
Thanks for your help.
Thierry
...
I have been trying to us CALayers as "sprites" in an iPhone application I'm working on. From what I have been reading, that seems like the correct thing to do here.
When I setup the layer inside a UIView class I am able to get the layer to show up on the screen:
NSLog(@"GameView initWithCoder");
NSString* imagePath = [[NSBundle mai...
Hello,
I am playing MP3 audio form a network stream and sometimes gaps are present when using WIFI connection.
I decrease the buffer size, but I am wondering what is the best method for calculating buffer size.
My MP3 stream is 64 Kbits.
I am using 3 buffers, for 64 *1024 each.
PacketDescriptions is 512
Thanks a lot
Thierry
...
What are the options to accept a credit card payment from an iPhone application? This will be a stand alone application, not an iPhone specific web site. Can I integrate with a payment gateway like Authorize.net? What about paypal or Google checkout? I know on some web sites, it will take you to a paypal site for the payment authoriz...
I'm looking to create an iPhone application and will enroll in the iPhone Developer Program. However, it isn't clear to me how many developers I can have if I enroll in the Standard Program. It says the Enterprise Program is for companies with more than 500 developers, so if I work on a team with 2-3 other developers, will the Standard...
I have a static library that includes some xibs. These will basically be the same across projects. I'd like to include the xibs as part of the library. I can include their veiwcontrollers, reference these controllers in the calling project but then there isn't a xib to load. When I right click the xib in the library project, it can't...
Below is a block of code that runs in a separate thread from my app's main thread. How do I get the UI to update after each button gets its thumbnail? Right now it doesn't update until the whole method finishes. The buttons are already added to a UIScrollView.
(LotsGridButton is just a UIButton with some extra properties.)
- (void)fetc...
I've created a new View-based Application in XCode.
In the ViewController, the only code that I've modified looks like this:
- (void)viewDidLoad {
[super viewDidLoad];
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
newView.backgroundColor = [UIColor redColor];
[self.view addSubview:newView];
[CATransact...
What I want to do seems pretty simple, but I can't find any answers on the web. I have an NSMutableArray of objects, let's say they are 'Person' objects. I want to sort the NSMutable array by Person.birthDate which is an NSDate.
I think it has something to do with this method:
NSArray *sortedArray = [drinkDetails sortedArrayUsingSelect...
I'm trying to draw a shadow under the bottom edge of a UIView in Cocoa Touch. I understand that I should use CGContextSetShadow() to draw the shadow, but the Quartz 2D programming guide is a little vague:
Save the graphics state.
Call the function CGContextSetShadow, passing the appropriate values.
Perform all the drawing to which you ...
Various sites on the internet claims that Safari cache on iPhone 2.2 is 25k and 19 objects. Does anyone know what is the cache size for Safari/webview on iPhone 3.0.
...
I've been reading that if I have something like this:
@property (nonatomic, assign) UIView *anView;
Then I don't have to care about memory management. I don't have to do [anView release] in the -dealloc method.
Why?
"assign" just tells the compiler: "Hey man, this property does not retain whatever anyone assigns to it". And then you...
Hi everyone. Is there any way to make PVRTC textures work on the iPhone Simulator?
...
Somewhere I was reading that - regarding low memory warnings and giving up an non-visible view with all it's subviews (= a whole nib, I think), you should do that:
-(void)dealloc {
[anView release], anView = nil;
[someImageView release], someImageView = nil;
[super dealloc];
}
rather than
-(void)dealloc {
[anView rel...
Hey,
is there a way to connect the iPhone with Sharepoint?
I wonder, if it is possible to implement the HTTP or WEBDAV
protocol of Sharepoint in Cocoa/Objective-C.
Regards
...
If I define an property and just do:
@property(nonatomic) UIButton* button;
then I think that it's an "assign" property. Is that correct?
...