iphone

Blowfish objective-c implementation

Hello, What objective-c implementation of Blowfish would you advice to use? (Or may be I just missed some standard implementations available?) ...

Partial page curl animation

I have a working transition using UIViewAnimationTransitionCurlUp however, I would like the animation to stop halfway through, much like the Maps application...Any thoughts on how to achieve this? ...

Simple list of sub category

I have a plist with categories : <array> <dict> <key>part</key> <string>up</string> <key>house</key> <array> <dict> <key>name</key> <string>name1</string> <key>theme</key> <string>theme1</string> <key>image</key> <string>image1.png</string> </dict> </array> </dict> <dict> <key>part</key> <string>down</string...

Z-ordering of MKAnnotationViews

I'm getting fairly frustrated with the limitations of MKMapKit. My current problem has to do with the z-ordering of annotation views, particularly as it relates to touches. If you accept the default z-order the mapkit gives you: The order appears random. The z-order is unrelated to the order the annotations were added. If one annota...

How to create a Login and Registration page in Objective-C and how connect it to the server?

Hi guys! I want to create a Login and Registration page in Objective-C but I am very new in iPhone programming. How can i create that pages and how connect it to the server? Thanks to everyone can help me! ...

Cocoa-Touch: Using UITabBarController with multiple tabs as UINavigationControllers

I'm building an app that has 5ish tabs, each of them will have table + item details views. So I have to create a UITabBarController and the items instead of being the direct views are the UINavigationControllers with a default view inside. I've done this, and it works, but.. Isn't this a waste? Looking at what the UITabBarController d...

Changing subview content after view has loaded (cocoa touch)

Hello, I am trying to create my own implementation of a tab bar, using a toolbar instead of a tabbar (to enable customization of the new "tab bar"). In order to achieve this, I need to have the ability to switch between views when a button is pressed. Currently, my view consists of a tabBar subview, and a customView subview. The latt...

on iphone, how can i stream several videos one after one?

Right now i am use using mpmovieplayercontroller, but i need to close mpmovieplayercontroller for play another video. Is there a way to play several videos without closing the mpmovieplayercontroller? thx ...

APIs for converting Voice/Audio data in to text

Hi, I am working on a iphone apps in which i am storing the voice of users as audio file and want to display in text. How it will be ...any idea about APIs ?? Thanks, Aaryan ...

iPhone SDK: Return to RootController is crashing my app.

My application is crashing, I think, in RootController.m and I don't know why. It occurs when I am in any view controller and I push the back button. It briefly returns to RootController and then it crashes. There is no messages on the console. I don't think it is the ViewController as I have tried more than one. Here is the code. #im...

Settings IBOutlets to nil in dealloc

In the section titled 'Memory Warnings' here http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmNibObjects.html, I don't follow why the IBOutlet is set to nil in the dealloc. If self.anOutlet = nil causes a crash as mentioned in the topic, why are they setting the ivar to nil? In general, ...

IPhone SDK help with minigame

right basically what ive got is an app which is a ball and bat and its how many bounces you can achieve, it works alright but there is one problem, when the ball hits the side of the bat it throws it off course and its like the frame of the ball is bouncing in the frame of the bat, Here is my code in my mainview.m #import "MainView.h" ...

Problem dispatching with google mobile analytics for iphone

I have integrated Google mobile analytics into my iphone app, but for some reason the page views and events are not dispatching. I put this into my app delegate applicationDidFinishLaunching method (i've x'd out the UA string): [[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-xxxxxx-x" dispatchPeriod:10 delegate:self]; NSErr...

Read NSNumber from NSData

Hi, I pretty new to Objective-C (and C itself) and need to consume a NSData from a HTTP output. I've never really worked with byte arrays or had to worry about little/big endian issues, and have struggled a bit to write the following method to read a NSNumber with a specified length from that NSData. - (NSNumber *)readNumberWithLength:...

iPhone SDK: Dealloc vs. Release?

I am wondering what the difference is between release and dealloc? After reading, the memory management rules (See below)., I am thinking most of the time I will be using release. However, I wanted to know what to do for properties. @property(retain).... I have been using dealloc but after reading this article I am not sure that is c...

Any way to silence the UIDevice setOrientation warning?

Anyone have a simple way to silence the undocumented UIDevice setOrientation warning? I found this piece of code that silences the undocumented UIPickerView setSoundsEnabled warning. ...

my experiment shows that rendering order affects performace alot in TBR architecture. why???

Hi, TBR chips perform HSR (hidden surface removal) before fragment processing, so only the visible pixels are rendered. This feature results in no necessary sorting opaque objects from front to back. But i have done a experiment on my iPhone 3GS. By comparing the frame time, rendering opaque objects from front to back is much faster tha...

IPHONE: UITableView reloadData not working

Hi, I have a UITableView with two sections: free and paid. Each section has a different kind of cell. The free cells have two labels and an image. The paid cells has two labels, an image and a button that allows the product to be bought. Once a product is bought, the BUY button on that particular cell must not be shown again. Said that...

How does presentModalViewController interact with nested UITabBarController and UINavigationController

I have a view that I want to take up the full screen, so I override the init method, and some of the view methods: - (id) init { if (self = [super init]) { self.wantsFullScreenLayout = YES; } return self; } - (void) viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [[UIApplication sharedApplication] setStatu...

How to determine length of audio file associated with AVAudioPlayer

Does anyone know how to get attributes from a file associated with an instance of AVAudioPlayer..specifically I am looking how to determine the length of a WAV file. ...