iphone

ModalViewController within a UINavigationController not animating on dismissal

Hi - I've got an application with several modal view controllers. Most of them work fine except for one that is within a UINavigationController (so that I can show a navbar). When this modal view controller is displayed it animates fine but when dismissed it does not animate. I'd really like it to animate. Any thoughts? Thanks much...

iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

I'm running Xcode 3.2.3 with the iOS 4.0 SDK. I built my app with Base SDK = iphoneos4.0, Active SDK = iphoneos4.0, Deployment Target = 3.1.3, and Architecture = standard (arm6 arm7). Compiler = GCC 4.2. As I understand it, this is the correct way to build an app for both iOS 4 and 3. The app runs fine on devices running iOS 4. But it c...

How to read cell data from an Excel document with objective-c

I'm building an iPhone app that has to download an Excel (.xls) file from a website and perform a string search of the spreadsheet data. I've done this in C#, but I have no idea how to do this in objective-c. How do I access the individual cells using objective-c? ...

Redrawing UIScrollView contents after every zoom

I have a UIView inside a UIScrollView. Whenever the UIScrollView zoom changes, I want to redraw the entire UIView at the new zoom level. In iOS < 3.2, I was doing this by resizing the UIView within the UIScrollView to make it the new size, and then setting the transform back to Identity, so that it wouldn't try to resize it further. H...

What are live bytes?

I have an app that holds a lot of pictures and when the user browses them the live bytes in my app gets to max 88 mb. firstly what does that me, The app doesnt crash, it gets a little slower. but is that 88mb in memory ? Secondly I have a UIView which I set its view to an image depending on the number in the counter. Is there a way to...

How can I change the font color of a UIBarButton item?

I want to change the color to red. ...

Displaying tooltips in an iphone table view

I was wondering if anyone has tried it. I need to show a tooltip within a table view when the user selects a word in the row's text. What are the complexities involved? What is the best way of doing this? Thanks in advance! ...

What files do I need to distribute if requested to comply with LGPL in an iPhone app?

I'm working on an iPhone app which uses the Zbar library which is under the LGPL licence. What I'd like to know is what I need to give someone if they request a copy of the code under this licence for my iPhone app? I've been told they are in the build folder and also that they are .o files. I've found some of those in the armv6 and arm...

What is the best way to display images/slides/containers on the iPad?

Hi everyone For an app that I am writing I need to display several views (in my case images, yet I guess that should not matter all that much) in a style similar to the way images are displayed in the Fotos app for the iPad. Consider this graphic: Obviously on portrait view fewer slides can fit in per row than on Landscape view. What...

Count no of boolean records from second table - Coredata

hello my test application can currently load a table view which lists a couple of books, the detailview takes you to cells that displays the book text in cells. the user has the ability to bookmark a cell which is a boolean in the book_text table. what i am trying to do is, on the main table view, is: 1-Load the books like how it does ...

UIIMagePickerController with iAds

Hi All, I am trying to add iads to my iphone app which uses UIImagePickerController. When I try to add the iads its not getting loaded meaning when I tap on the test ad it doesn't get full screen but when I remove [self PresentModelViewController:picker animate:NO]; this line from my code then the iAds are working just fine but now ...

How do i terminate an iPhone application gracefully in code

What is the proper way of ending an application on the iPhone when you are finished with it? thanks, anton ...

How can I determine if a user has pressed on a UITableViewCell for 2 seconds?

I am using gesture recognizers: Initialize in viewDidLoad: UILongPressGestureRecognizer *longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)]; [self.view addGestureRecognizer:longPressRecognizer]; This is what longPress looks like: - (void)longPress:(UILongPressGestureRecogni...

Excluding from animation block

[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; ... [UIView commitAnimations]; For example I need to animate frame's width conditionally, along with the rest of other modifications which are mandatory. The reason I can't put the code out of this block, because there is a function call within the block. How...

How do include and call sample code methods in Objective-C?

iPhone/Mac "play a sound class": link text I find an awful lot of great objective-c classes and code samples here... and elsewhere. I successfully create the .h and .m files, but how do I call them from my existing code? Where do I put the @class or #import statements? How do I call the methods? What if I need to play 2-3 different...

cant figure out this JSON string

I'm trying to use the google translate api's to... well translate some text, but its behaving strangely. When my query (the text to be translated) contains no spaces, it works fine, however as soon as I introduce a space into the query, i get no results back. This is my code: -(void)translateText:(NSString *)originalText { //Constru...

xcode - load localized images with the same name, not using nslozalicedstring

Hi. I'm trying to load a "Play" image(uiimageview) depending on the device language. In my AppBundle there are to folders, en.lproj(english) and es.lproj(spanish) with a Play.png image each one(one in english and one in spanish). I know how to load localized images using a Localizable.strings and images with different name, for exampl...

FBConnect not working with iOS4??

I upgraded to iOS4 and noticed that -(void)session:(FBSession*)session didLogin:(FBUID)uid is no longer invoked. I have set the view controller as an FBSessionDelegate. Has anyone come across this problem? ...

how to create the object programmatically rather than using the UI library on iPhone?

Hi, everyone, I want to ask a question about the objective C on the iPhone. I am writing a program, but I want to create the UI objective programmatically rather than by using the UI elements in the UI library (Xcode). And I am interested in the tab bar and the navigation bar. Can anyone one give me some example code, tutorial website o...

Magnifier effect with CALayer s

Hi, I want to implement a magnifier exactly like the one is shown when an UITextView is long pressed. I got the idea from here: http://stackoverflow.com/questions/2030730/iphone-reproduce-the-magnifier-effect/2030846#2030846 But I am working only with CALayers not UIViews, hence I don't have a drawRect method to write in. I wonder whe...