iphone

iPhone - A text in a text

Hi everyone, I would like to have a text in a text... I mean like in the newspaper: when there is a picture, the text fits and follow the border of the picture. For example: http://en.wikipedia.org/wiki/Iphone look at the pictures... the text follows them! Is it possible to do that on the iPhone? Thanks in advance ...

How to do a modal transition?

I have an app that is modal in nature. For example, a sales screen is created modally. When the user presses done, I want this to happen: a.) Display confirmation screen 1 followed by confirmation screen 2. Trying to display one after another serially is not working. I am wondering how to code this? ...

How can I forward touches to a UIButton from another UIView?

I have a UIButton and a UIView. The View sits above the button, and is larger than the button in size. The view itself is what I want to have accept the touch events, and I'd like to forward them to the button, so that all the normal button visual changes on touch happen. I can't seem to make this work-- my UIView implements touchesBeg...

What tools might I use for generating documentation for an Xcode project?

I am wondering which tool can be used in Xcode to generate the documentation for an iPhone project, so written in objective-C and C mostly, but also helping designing the code. The documents I'd like to be produced are: UML-like class diagrams (with generalization, aggregation and composition relationships) UML-like components diagram ...

[searchbar becomeFirstResponder] Memory heavy ?

While I was tracking down memory usage I noticed that [searchbar becomeFirstResponder]; uses up to 4mb ram. Now Im asking why? Is that normal? Im kinda confused about this. When commenting that line of code the memory usage of my App is, yes, - 3-4 mb. ...

NSPredicate - returning ever unique instance in a column.

I was wondering if there was a predicate to return every unique instance in a column. ...

loading a view on top of tabbarcontroller

Hi, I have a tabbar controller and on touching a button in one of view's navigation right button i want to load a (nav controller + view )on top of it. The view which is on the top of it is semi transparent and i should be able to see the content in the tabbar controller. I tried using the [self.tabbarcontroller.view addSubview:navCon...

How to set content offset and content size in a UIWebView

I have had to change a UIScrollView into a UIWebView due to formatting reasons. There is a problem though that I need to be able to get the content offset back to 0, 0 (as I am using reusable UIWebViews and changing content) and get the content size so I can place a button at the bottom; but UIWebView does not seem to have this. ...

search button in search keyboard

hi, I have a search bar and on clicking the search bar the keyboard pops up. On pressing the search button on search keyboard the keyboard should hide. How to do this ? ...

Adding a bool for whether or not a btton was pressed

I want to add a bool to change a value îs favorite every time a button Is clicked. If the button is clicked in a different controller I want to add an object to an array. What I'm asking is how to add the code to the first controller to change the bool value. This is my first time working with a bool so If someone mentioned where to ref...

Monitor iphone application api calls

I was wondering if there is any way to monitor 3rd party iphone applications' api calls? For instance if application access address book is there a way to monitor that or intercept call? I understand it may not be possible to do so without jail-breaking, but is even possibility after having jail broken the phone? Thanks! ...

Custom keyboard and type letters

Hi , every one i create custom keyboard and i have problem iam using my keyboard as textview.inputView = myKeyboardView; my keyboard buttons have this code : NSMutableString *text = [textPad.text mutableCopy]; NSRange selectedRange = textPad.selectedRange; [text replaceCharactersInRange:selectedRange withString:@"A"]; tex...

UIView does not sizeToFit child views

I am creating an expandable view control which I would like to expand to the size of the child controls, however if I try to use the sizeToFit method nothing happens and sizeThatFits simply returns the current views size Any suggestions?!? ...

USB file transfer on iOS

I want to write an app that stores its data in a file that can be retrieved and transfered to the user's PC. Does the iOS support file transfers over USB (through my app or through a mass storage device type feature). Preferably, I do not want to write a client for the PC to receive the files, and I want to prompt the user about new file...

Why is Instruments reporting memory leaks in this code?

Quick question, Instruments is reporting a leak here... MyViewController *myVC = [[MyViewController alloc] initWithNibName:@"myView" bundle:nil]; [self.navigationController pushViewController:myVC animated:YES]; //<<<<---- !00% leak according to Instruments [myVC release]; I understand the myVC is retained by the nav controller,...

touchesEnded:withEvent: How to work around the delay before it fires

On iPhone OS, -touchesEnded:withEvent: fires quickly when you left a finger, unless there was a drag. If -touchesMoved:withEvent: has fired, then there is about a 0.6 second delay before you get touchesEnded:withEvent:. I verified this in a new project, no scrollView, no multi-touch. I want the user to drag an object around, and then h...

What is an effective way to hold a universal constant on an iphone app?

Hey, I'm trying to create an iPhone app in which I connect to an API and get a security string and id with which to make requests to the api. The string and id change every time the app is run, and multiple view controllers in the application need the information. How can I effectively store that information so it can be easily access...

iOS 4 Application Termination and Undo

What is a good way to handle iOS 4 app termination when using an NSUndoManager? I have an iPhone (iOS 4) application that uses Core Data. The app allows the user to edit managed objects, and I implement undo using NSUndoManager in a straightforward manner: Before displaying an editor view modally, I create a new NSUndoManager for the ma...

Subclassing NSCalendar?

Hi all, I'm trying to make a subclass of NSCalendar, but without much luck. I've tried two ways: thorough categories. I can create a modified object and a test method that I added (not part of NSCalendar) works just fine, but overriden methods don't work - e.g. if I call dateFromComponents:, the NSCalendar method is apparently called,...

Question about version numbers and in app purchases?

I am finishing up an app for a client that uses in app purchases and i am getting ready to create the app in itunes connect so i can add products. My question is do i have to enter in all the final info such as name, description, icons, screenshots, version, etc.., that i will be using to release the app with or can i just create a stu...