iphone

how can i place hexadecimal code for color in iphone

hi i am new to iphone. I am using the fallowing code for imageview background color imageView.backgroundColor = [UIColor redColor]; but i need to set background color using hexadecimal code (e.g. 0xffff) how can I do this? thank u in advance ...

find the date of last update to sqlite in iphone

i have a database in iphone which is regularly updated. is there a way to find out the date of last update to the database. i just need the date and not the data. also don't want to store the date of update as a extra column. ...

Freeing Objects in Objective-C Blocks

When using an Objective-C object that returns asynchronously with a completion handler, like AVAssetExportSession, is there anything wronmg with code like this: AVAssetExportSession* exportSession = [[AVAssetExportSession alloc] initWithAsset: composition presetName: AVAssetExportPresetHighestQuality]; [exportSession exportAsynchronousl...

how to get touch event on specified CGRectMake

I want to get touch event on UIImageView with specified location only. UITouch *touch=[touches anyObject]; CGPoint currentPoint=[touch locationInView:CGRectMake(0,0,100,100)]; CGRectMake(0,0,100,100) In the specific location i need touche event, is it possible. What to do? Thanks in advance. ...

Layer animation works fine first time, but not on second identical invocation

I have an animation that works perfectly on the first invocation. But if I want to animate the very same layer again, using the same code, it completes immediately and the animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag is invoked on the delegate with the flag value NO. Here is the code that adds the animation: imag...

Restrict Duplicate entry in NSArray

Hi all, I have an array, which contains some duplicate entries. Firstly, is there any way to restrict duplicate entries when data getting inserted? secondly, if an array already having duplicate values than in some other way, we can retive only unique values from that array, i heard about NSSet aboout this, but i hv no idea how to use ...

Open GL + Applying Brightness on the Image + Undo Brightness operation

Hello All, I am working on one module of application. in this I need to perform brightness operation on the image [ I have done this using OpenGL ES ]. Now I am stuck on how to revert back this brightness operation if in between user clicks "Cancel". As I am drawing on same layer for brightness operation. I am new to OpenGL and might...

bottom to top animation example

I need to show the next image with bottom up animation in uiviewcontroller. How can i do it? Thanks in advance. ...

Restart iPhone after installing or upgrading an app

What's the logic behind it? Ive been told by multiple apps to do this. I've also noticed that if I reinstall/build the app too many times from xcode, it will become unstable and more likely to crash. A restart does fix the problems. ...

display loading

Hey there, I'd like to display a UIActivityView in a rounded transparent box with text, just like the one shown below. Does anyone know how to do this? p.s. I'd rather not be putting it in an UIAlertView, but I don't know how to do it any other way. Thanks! Tristan ...

Problem with MPMoviePlayerPlaybackDidFinishNotification

Hi All, I am having a strange problem. I need to stop the player when playback finishes. I am using [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(stopAudio) name:MPMoviePlayerPlaybackDidFinishNotification object:nil]; Though ...

iPhone + OSX targets on the same project

I created a project with two targets, one for iPhone and another for Mac OsX. They both build and run well when I build them the first time (I built the OsX target first then iPhone target next). However, if I build the iPhone target and switch back to OsX target, the OsX target now thinks that it uses the iPhone SDK rather than it's ow...

How to set leading in CoreText?

You can get it with CTFontGetLeading(aCTFont), but how do you SET it? Can anyone please explain? Is there another way around this? Do you have to set the space between the lines manually, perhaps? ...

Replacing lib with newer one causes symbols to be missing.

Hi, I'm using mobclix lib in an iPhone app, I tried to replace the old lib with a newer one, the old lib contained a class named MobclixAdViewiPhone_300x50, but it has been deprecated and replaced with MobclixAdViewiPhone_320x50, I changed my code to match the library changes, and removed the old library and its headers and added the new...

want to open a link , if user clicks on the link in ipad.

hi i am using CALayers for displaying pdf book. I have implemented that already . But now i wanted to add one more functionality, ie opening the link if user clicks on any url or link , if he finds in pdf, is there anybody already implemented that??? or anybody has idea? After user clicks on link, the link address has to be fetched a...

Storing Huge Amount of Files in the Application Bundle

Um, I working on a dictionary app and currently trying to add narration for each article. I have about 97000 AAC-files. They are tiny - about 3-5 kilobytes each, but there are so many of them! I don't need SQL DB for access management because filenames are identical to the primary keys, so given the key I will be able to pick a proper so...

Pitch manipulation of Audio recorded Sounds

Hello All, I have a challenging task please help Task: Just say something into your iPhone or capture a friend saying something. Then application make it sound even MORE ridiculous with your choice of over a dozen different voices. Voices of animals, guitar, drum etc. In this task we have to convert Pitch Manipulation i suppose. Ple...

iphone - handle web page with in the application.

i'm currently working on iphone app which has a web view. i'm pulling a web page from internet and updating the web view. the web page has 3 text inputs: username, mail id and response code. it also has a button "play now". on click of play now, the data is posted to server and some processing is done there...... now,in my application, o...

folder "__MACOSX " creating problem

Folder "__MACOSX" creating problem. I am doing something with my document directory folders , but there "__MACOSX" folder create problem . when user download application from app store . is it creating also in document directory ? if its creating then what is the solution to solve this ? please help. ...

Core-Data CoreDataGeneratedAccessors vs. simple assignment

I have a 1-to-many relationship in a Core Data graph, and I'm trying to understand the difference between using a CoreDataGeneratedAccessors method and a simple assignment to alter a relationship. For example, the Core Data Programming Guide has a department and employee example. In that example they use the CoreDataGeneratedAccessors ...