iphone

OpenGL ES on iPhone, How to Optimize for 2D (+ questions)

Hello ! I begin with OpenGL (and ES), so I have some (|| a lot) of troubles ^^ I Have two questions. 1°) I would like to have your opinion about my code. Because I don't know if all lines doing what they should do. The aim is to draw the lines of a polygon (but not to fill it, yet ^^). So I just want to do 2D on background transparent....

Want to use muliple nibs for different iphone interface orientations

Hi, I have a situation, I have created two different nibs, one in Portrait Mode and other in Landscape mode. I had lots of designs in the view so, i had to opt for two different nibs. Now, I want to toggle the nibs as the interface rotates in the common viewController so that I can retain the filled values and the state of the co...

forgot to put regular image but it has Retina @2x image

I have submitted my app which support both regular and retina display edition. I forgot to put one of regular image file (a.png) but it has ([email protected]) Retina image. Is it going to be regular iPhone able to show ([email protected]) image or not? I have no clue since I don't have 3GS or iPod Touch, but on iPhone regular simulator came out to be s...

how to get the information about the music track playing in the IPhone?

I want to get the information about the music track playing in the IPhone. And my application is a seperate one which is running on the IPhone do I able to get that information? ...

i want to send some notifications to observers when some event occurs. and i also want to know how observer catch/handle/receive that notification ??

while reading cocoa fundamental guide i have gone through: (void)addObserver:(id)notificationObserver selector:(SEL)notificationSelector name:(NSString *)notificationName object:(id)notificationSender I am getting all theories, but actually i am looking for a real example where it is used ? Can any one give some sample example. Act...

UIViewAnimationTransitionCurlUp mirror

Hee, Does anybody know how to mirror the UIViewAnimationTransitionCurlUp animation? It slightly curls to the left when it curls up, i want to change that to the right. Thanks ...

Error: Conversion from 'objc_object*' to non-scalar type 'CGSize' requested. Please help?

The following line is throwing the error, what's the matter with it? CGSize size = [label sizeWithStyle:style forWidth:bounds.size.width]; My code: MSHook(void, drawRectLabel, SBIconLabel *self, SEL sel, CGRect rect) { CGRect bounds = [self bounds]; NSString *label(MSHookIvar<NSString *>(self, "_label")); NSString *style ...

How to load iphone calendar application in iphone simulator 4.0

How to load iphone calendar application in iphone simulator 4.0 ? Is it possible ? Can anyone help me ? Thanks in advance.......... ...

Game Center in iOs - specifying a configuration for your match

Going through the Game Center / GameKit docs, I could not find any information on specifying game configuration variables for a match. Let's say that you want to specify certain features a match should have to qualify for match making (e.g. you want to exclude certain weapons from the game, want to specify a length for the match etc.). ...

Is there an quick way to draw 3D text in OpenGL ES?

For example, if I have an Arial bold font and want to show text with some amount of 3D perspective. Can OpenGL ES do something like this easily? How hard is it to get a display of 3D text? I'd start with "Hello World" as an example...pretty simple string. What are the difficulties and pitfalls? ...

NSURL code to display an image from a sqlite table

Ii'm using this NSURL code to display an image. what I want to do is to insert a url from my database table in place of the static url shown in the code below: Does anyone know how I should proceed? NSURL *url = [NSURL URLWithString:@"http://www.nyapplecountry.com/images/photosvarieties/redrome04.jpg"]; UIImage *image = [UIImage imageW...

Is there a faster way of doing this?

For a little practise fun project I did this: I added a grid of UIView instances to an view controllers view which work pretty much like an number segment LCD (but those LCD screens that have squares and can show pretty much anything, not just numbers...with low resolution though). There are 8 * 8 views on the screen (so 64 views, in ...

iPhone app - interface design

After I complete my application, and want to hire a designer to work on the "user interface" what files do I supply him with? (I dont want to give him my entire app with source code, to the designer, is that possible to get get the interface done?) thanks. ...

Cannot choose "Run with Performance Tool" -> "OpenGL ES" in Xcode 3

In Xcode3, out of all options under "Run" -> "Run with Performance Tool", I can only select: Leaks CPU Sampler Allocations Activity monitor I cannot select any other option including "Zombies", "UI Recorder", etc., or most importantly for me, "OpenGL ES". I think this is consistent in all iOS projects on the machine, but I did not c...

What can I do with my old iPhone

I currently use my iPhone 3G for testing my apps, but I am thinking about upgrading to the iPhone 4. What can I do to my 3G so I can still use it for testing. I don't need it to have 3G access, I just want to be able to put apps on it for performance testing since it is a slower device. I would still like to keep Wi-Fi access if possi...

questions about memory managnement on iphone

hello, imagine i have a main view, in which i have a call to the "AddSubview" method, like this : [mainView addsubview:secondView]; ...in this second view, i have a searchBar, with the appropriate code to show a UIkeyboard, type some text, use this one in the app, and finally dismiss the UIkeyboard. Ok. When this part of the program ...

how to save a uiview while closing the app

hi, I have a requirement to save the last screen viewed while closing the app so that i can show the same screen when he re-opens the app. Can anyone tell me how to save the view and show it after re-opening ? ...

Xcode 3.2.3 and up - static libs with targets for multiple platforms

Hi. I have a static lib project with targets for iPhone and for os x. With Xcode 3.2.2 and earlier versions all worked just fine, but in 3.2.3 apple seems to have introduced changes in how to handle target settings. In 3.2.2 I just could choose "base-sdk" from drop-down menu and set up a target for each, iPhone simulator, iPhone device a...

how to scroll from the middle of the image in the scrollview

hi i am new to iphone.what i did is creating a horizontal scroll view.In the view i am displaying 20 images.In the scroll view images start from 1 st image.But i need image start from 10 and then it is easy to scroll left and right.How can i done this.Please help me.Thank u in advance ...

Creating CMSampleBufferRef from the data

Hi There, I am trying to create a CMSampleBuffer Ref from the data and trying to feed it to AVAssetWriter. But asset writer is failing to create the movie from the data. Following is the code to created the CMSampleBufferRef. CVImageBufferRef cvimgRef = CMSampleBufferGetImageBuffer(sampleBuffer); CVPixelBufferLockBaseAddress(cvi...