iphone

Speex for iphone

how to use "speex" for audio encoding/decoding in iphone? I am not getting the framework to add in project. ...

iphone sdk > 3.0 . Video Thumbnail ??

From what i have read apple doesnt expose the api to allow developers to get a thumbnail of a movie using the current sdk. Can any one share some code as to how they are going about this? I have heard you can access the camera picker view and find the image view just before the ui image picker is closed. This seems kinda ugly. Also iv...

Interfacing blurring routine with UIImage or CGImageRef... (iPhone)

I found some blurring code at http://incubator.quasimondo.com/processing/stackblur.pde. Any ideas how to feed it, and get back, a UIImage or CGImageRef or something usable on the iPhone? I'm not sure what format their BImage file is (Bitmap?) and what corresponds to it in Cocoa Touch. Thanks. ...

iphone emulator URL schema for phone call

hi, I'm new to iPhone dev. I could solve most of my problem reading stackoverflow/apple doc, but now I'm kind of stuck. I'm trying to make a phone call from a phone number. from the doc and example I found, I made this: // "9312345678" -(void) doCall:(NSString*) phoneNumber{ DsLog(phoneNumber); NSString * s = [NSString string...

iphone carousel ?

Hey, is there some pattern or code to produce a carousel on the iphone? I need something like UIScrollView but that will loop when i scroll so that the first item is after the last item. people do that in javascript all the time, I'd like to do the same in objective-c. ...

Audio not playing when iPhone is sleeping

I would like to know one thing. I hope you people can guide me well. I am creating an application which needs some audio alerts. I am using AVAudioPlayer for this purpose. I also set the Audio session like this (in my main delegate class): //to play from sleep OSStatus result = AudioSessionInitialize(NULL, NULL, interruptionListenerCa...

Group by weekdays with Core Data

In my Core Data Model i've got an entity that has a date attribute and as the title suggests, i'd like to group this entity by (week)days. The problem is, the dates are stored more or less as timestamps and i don't know how to create a predicate that is capable of grouping/filtering my entities approprioately. I've figured out that i w...

CATiledlayer delegate not getting called

I am trying to use a separate delegate class (as many examples do) to perform the drawing of a large image in a CATiledlayer. The tiled layer has been added as a sub layer in a separate view. I first start out with a view controller. // ImageInTiledLayerViewController.h #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> #import...

Is it possible to call a method automatically every time a value changes?

i.e. I have a layer's "transform.rotation.z" value which may change several times. Every time that value changes, I'd like to call a method. Of course I could call it just at any point where I touch that value. But maybe there's a more elegant way in objective-c / cocoa-touch? Somebody told me a few days ago that there's some notificatio...

Resizing UIimages pulled from the Camera also ROTATES the UIimage?

I am getting UIimages from the camera and assigning them to UIImageViews to be displayed. When I do this the camera gives me a 1200 x 1600 pixel image which I then assign to a UIImageView in my Application. The image is displayed as expected in the image view under this condition. However, when I attempt to RESIZE the retrieved UIImage b...

Play AVAudioPlayer From A Sleeping iPhone

Hello Friends, I am creating a alarm application. I am using Audio Session in my main delegate class. OSStatus result = AudioSessionInitialize(NULL, NULL, interruptionListenerCallback, self); UInt32 category = kAudioSessionCategory_MediaPlayback; result = AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &c...

iPhone localization with sqlite?

How is text in a database localized for the iPhone? The examples I've seen have hard coded strings in the .m file or .xib. For example: NSString firstName = NSLocalizedString(@"First Name", @"This is the first name"); What happens if the strings you need to localize are in the database? I haven't found discussion of this type of lo...

How to change UItabbarcontrollers viewcontrollers array dynamically?

Hi All, I am developing an iPhone application using iPhone SDK 3.0 . Its a view based application consisting tabbarcontroller. I need to change the viewcontrollers array of the tabbarcontroller dynamically. I just done it using the following code: [tabBarController setViewControllers:m_objArrtabbarViewControllers]; But it only change...

How to Key-Value-Observe the rotation of a CALayer?

I can access the value like this: NSNumber* rotationZ = [myLayer valueForKeyPath:@"transform.rotation.z"]; But for some reason, if I try to KV-observe that key path, I get a compiler error. First, this is how I try to do it: [myLayer addObserver:self forKeyPath:@"transform.rotation.z" options:0 context:nil]; The compiler tells me: ...

Where can I find an explanation of all transform matrix fields?

I've seen in some document from apple that the matrix behind a CALayer's transform property has fields like m14, m21, m22 and so on. I also remember that I saw a table that explains those fields, about one or two months ago. I had a hard time trying to find it. Anybody knows a source? ...

Tableview with sections managed by fetched results controller

Hi, I'm quite new to CoreData and need help with one issue. I have tableview which simply lists cities stored in SQLite db. City is defined by "cityId" and "name" attributes. Data are fetched using NSFetchedResultsController and everything works fine except that I can't figure out how to make FetchedResultsController to group cities by...

Tax form on iPhone Developer, non-us live in Us

Hi, I am a International student studying in US. and I am not a US citizen. iTunes Connect assume me as a US citizen just because my address is in US. The only form I can chose is W9 form, which is only suitable for US citizen. Does anyone know how to solve it? I know W8-Ben form is the right form for me, but I have no idea how do I ...

Can a UIViewController add itself to a UINavigationController

I'm starting an app where I'd like to have multiple view controllers. Some of the views will be displayed inside of a navigation controller. I can create a navigation controller and then add another instantiated view controller to it. But what I'd like to do, is just instantiate a view controller that has its own view and is the root ...

iPhone + picture share + picture host

Hi, I wrote an app for iPhone which lets you create a picture (kind of like photoshop). I wanted to let people share their pictures via Facebook for example, however their API only allows you to show images in a user's news feed via an image URL (you can't first upload a local image to the facebook servers and host it from there). It lo...

reflow text in PDF documents (iPhone, CGPDFDocumentRef)

I'm using CGPDFDocumentRef to render PDF content for an ebook app. This works great, but it seems to preclude allowing the user to read text in "landscape mode" by tilting the phone- I have no way to reflow the text to make use of the wider space. (Yes, I can scale the whole page to fit the new space, but that's not really helpful to t...