I'm using a meta viewport as mentioned here http://stackoverflow.com/questions/835040/why-does-uiwebview-shrink-images for UIWebView. This formats portrait fine and I don't have to compensate for weird scaling. However, once rotated to landscape, I can't take advantage of the additional width. Meaning, I'd like to fit more text into a...
I need to display a table formatted data on top of a UIWebView as a modal. Basically a UIAlertView. However, I need to display tabular data in this modal, which UIAlertView can't do (that I know of). I'm thinking to create an image with the textual data in it and display the image in a UIImageView or that within a UIView that can have...
Here is the situation,
I have UIViewController class with a UITableView outlet. I would like to modify / style the cell. I believe I can do this with UITableViewCells tableviewCellWithReuseIdentifier method. Since my class is not a UITableViewController it doesn't have this method. How can I use this method from the UIViewController...
I have an UITableView with sections in my iPhone application where it looks as something similar to viewing a contact details in standard contacts app. In one of the sections I have a UISegmentedControl set as a header of the section and the items in that section depend on what segment is selected in the segmented control. What I wanted ...
Hi,
I am writing an iPhone application in Objective-C that utilizes some custom drawing in views and I would like to benchmark various revisions of my code to see what really helps. I was planing on doing this by setting up a new application, adding my custom drawing code to the drawRect: method of the view, then, in a for loop in the v...
Hi,
I am implementing a custom text editor with syntax highlighting and I would like to integrate it into the OS 3.0 clipboard system. So, my question is, is there a way to programatically set/read the systemwide clipboard?
Thanks,
Kyle
...
Im getting these weird errors, but I dont understand them. Here are the errors:
error: variable - sized object may not be initialized (#1)
error: statically allocated instance of Objective-C class 'Joke' (#1)
error: statically allocated instance of Objective-C class 'Joke' (#1)
error: cannot convert to a pointer type ...
I'm pretty sure I can create a page flip effect using a series of PNGs to simulate the animation but is there a way to do it programmatically? Tried googling it and looking at Apple sample code but didn't see anything addressing that particular animation.
...
I was wondering how I would go about accessing one instance of a class, say "ship class" across multiple views.
Lets say I have a rootViewController and three subviews, one Main, one battle, and one landing. Where exactly would I implement an instance of a class that stores all the information on my ship and access it though the other v...
how do i add a custom button on a UITableViewCell ANd Then delete The Cell With That Button Without Using Interface Builder And Custom Cell? the data is loaded from the database..
plz someone help me
...
Is it possible to load a view on a background thread?
I am using buffering to render views into a buffer off screen so they can be scrolled into view later. I want to make the UI more response and it seems to be the off screen buffering that is the culprit, and am wondering if I can load up the buffered view on a background thread as I ...
I need to move text that the user has entered into a large multi-line UITextView into a smaller (but still multi-line) UITextView*. If the user has entered more text than will display in the smaller view, I want to truncate the text so that it fits with all the (truncated) text visible. (Neither the large UITextView nor the smaller one s...
I am using the iPhone SDK and have an issue doing something simple. I am trying to add an NSNumber object to an NSMutableArray instance variable. I tried adding NSNumber card to NSMutableArray viewedCardsArray, however without breaking, it does not get added to the array. Here is the code.
//////////////////////////////////////////////...
Hi to all,
I am developing one game where I want to magnify the image where magnifier image is placed.
For that I am using the concept of masking. After masking I am zooming the image but looks blur. And I want image should be clearer like we r looking through rifle magnifier. So if any one have solution then kindly reply
...
I'm often running into the problem, that I don't know how much space I have to place a view.
There's 20 units reserved for the status bar. How about tab bar, navigation bar, etc.? Sure I can look that up, but is there any good graphic on the net that shows all those heigths?
Let us know!
...
What do I have to do, if I need to rotate an UIImageView? I have an image which I want to rotate by 20 degrees.
The Apple Docs talk about an transformation Matrix, but that sounds incredible difficult. Are there any helpful methods or functions to achieve that?
...
I am wondering if I would run into troubles when setting the heights of my views in the neb with fixed values.
Example: The height of the Status Bar is known. It's 20 units. So when making a view that shows an nice interface, what would happen when the user takes a phone call while using the App, and the Status Bar increases in height? ...
Is there a way to know the cell carrier on an iPhone programatically ?
** update **
I am looking for the carrier name which the iPhone is connected to.
...
I have an UIImageView which I want to rotate a little bit, but I need to define an special origin for rotation. How could I do that? More precisely, I have an image of a goblet, and I want it to wiggle on a table. It's socket is quadrate. So when wiggeling to left, then my rotation origin has to be the left corner of that quadrate. And w...
I want to do some sophisticated animations. But I only know how to animate a block of changes. Is there a way to chain animations, so that I could for example make changes A -> B -> C -> D -> E -> F (and so on), while the core-animation waits until each animation has finished and then proceeds to the next one?
In particular, I want to d...