Coming from a Symbian background, I'm somewhat concerned about the seeming lack of error handling in Cocoa. Cocoa has many methods that, as far as I can see, have no error reporting and yet could fail.
Eg How come NSMutableString appendString has a void return type and doesn't throw exceptions (at least the documentation doesn't mentio...
I am trying to display PDF file in iPhone SDK V 3.0. I am able to display PDF file. But I want to change its font size/type/color. PDF file also conatins images.
Is there any way to have change font size/color/type of PDF file using UIWebView?
If no then is other option is available to display PDF file instead of UIWebView?
...
I have a UITableView with custom background images in each cell. The bottom cell has a taller image that the rest, because it contains a shadow. That means I have to extend the height of the last cell in a section to be taller than normal.
When I do this, the contents of the UITableViewCell look like they are resting at the bottom of ...
Hi,
I have an iPhone localization problem that has me perplexed. I was localizing my app and had English as well as simplified and traditional Chinese working fine. I have two files, Localizable.strings and sounds.plist which have been localized. Strings in both files appeared correctly on the device and emulator.
Now yesterday I am ad...
Hi,
I'm developing an iPhone app. I need to create a Quiz application that has different Question views embedded in it (see my similar question).
Different types of Question will have different behavior, so I plan to create a controller class for each type of Question. The MultipleChoiceQuestionController would set up a question and 3-...
Hello,
I have an application requirement of displaying custom ads in it so I decided to use UIWebView and load specific url with 468x60 ads generated in it. It works like charm, except one thing: loaded ad is too big (naturally) for 320px iPhone screen and I am unable to force it to shrink a litle bit.
What could I possibly do about it...
Well, it's actually the sum of an array of NSDecimalNumbers I'd like to get the absolute value of... I constantly feel like I'm fighting the framework with all the conversions & typecasting that are required...from double to NSNumber to NSDecimalNumber and back and...all while trying to maintain the precision that NSDecimalNumber affords...
I have a SecCertificateRef representing an X.509 certificate. Does Cocoa Touch have any libraries for working with the contents of the certificate (I couldn't find any), or will I need to parse the DER representation of the certificate myself? Parsing is not a problem, however I'd prefer to save some time if I overlooked some functionali...
When I call this function, it seems to return a pointer instead of an int. When I try and NSLog the return value, I get a warning "passing argument 1 of NSLog from incompatible pointer type." And if the NSLog runs, it crashes.
Does this have to do with this being a static method? How can I get back a real int?
I am using SDK 3.0
Here...
Is there a way to create one of the black glossy popups, similar to the one that appears to copy and paste text. I just want to give some information, so the behaviour I want is closer to the way the keyboard popup works when you type a letter but the appearance I want is the copy/paste dialogue.
Are either of these open to the public, ...
When I touch (Touch Up) a UITableViewCell my ViewController's UITableViewDelegate method - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath is called. I need to get the x-coordinate of the Touch-Point at this time as well so that I can know what portion of the Cell was touched (non-accessory items...
In my ViewController, I have a UITableView with some custom cells in it. When I touch a cell I want to get the touch coordinates right there into my UIViewController. The problem is, I can only get coordinates from parts of the screen not occupied by the UITableView..., Whenever my touch falls in the parts of the screen with the UITableV...
UIViewController has an ivar (and @property) called view. It is not however, an IBOutlet.
When creating a view nib in Interface Builder, you typically set File's Owner to be your UIViewController (or subclass thereof), and you wire the nib's view to File's Owner's view outlet.
How does this work if the UIViewController view member isn'...
Hello,
I am kinda new to iPhone development and haven't done anything yet envolving touches.
My view hierarchy like this:
UIView - UIImageView - UIScrollView - CustomView
How do I detect if the user has tapped anywhere on the screen so I can show/hide the navigation bar accordingly? I don't need user interaction on my CustomView bu...
Hi Friends,
My requirements are I need a panel where user can make signature. The concept is like when user touches the screen and move the pointer, it should be marked with continuous line.
Please gimme some idea how to implement this??
Thanks in advance,
Regards,
Rahul
...
I'm manually managing a UINavigationBar for my view. The Bar itself and the first UINavigationItem are created in Interface Builder. In my code, based upon various events, I push new navigation items onto the bar and paint the appropriate views as subviews of the main view. It all seems fine, but when I select the navbar back button, ...
Does anyone have a quick way to make a UISlider that looks like the ones in the iPod app (think scrubber/volume control). Basically I need something that looks exactly like an MPVolumeView, but doesn't control sound. Failing that, does anyone have the assets to make one (the knob/track).
...
I'd like to change the value of a parameter at runtime and curious how this works in Obj-C.
I have a loop where value of 'n' is 0 increasing by 1 with each loop. How does one increment the passed parameter by 1 as n moves.
UIViewSubclass *uiViewSubclass = [[UIViewSubclass alloc] initWithValue:([value integerValue])
...
Question:
I'm trying to access a variable from the UITableView tableView:didSelectRowAtIndexPath: delegate method. The variable can be accessed from the data source methods, but when I try to access it from delegate methods such as this one, the app crashes.
I declare the variable in my .h file, and initialise it in .m file in the appl...
UIImage has a read-only property CGImage. I have to read its pixels to a memory block and edit them and then make a new UIImage to replace the old one. I want to know if there is a way bypass the read-only property and edit those pixels directly.
Thanks.
Thanks all. I have found a way to do it. Write a class with those method:
-(vo...