uikit

problem in passing data when pop from one view to another view controller in iphone

hello I am having a application in which one view controller is pushed and when we pop from the pushed controller i do not get the value for the variable For eg consider there is A controller i n which i am havinh the int variable named Component now i push to B Controller on click event of button from A Controller ,When we are pus...

What is the fastest way to generate a new UIImage from transforms applied to an existing UIImage?

I am attempting to take an image captured from the rear camera, apply a scaling transformation to it and then output a new image with the same size of the original but scaled up. What I have below works ... BUT it is slow (especially the code in between the UIGraphicsBeginImageContext(size); and UIGraphicsEndImageContext();) Is there a...

Unhide the keyboard in iphone

Hi In my application what is want is when user clicks on button next view is pushed and default keyboard should be open in the pushed view . Thanks in advance ...

Sending a message to a subview after autorotate

I have a fairly simple view hierarchy in my iPad app. Window -> RootView -> TableView / DetailView TableView and DetailView are siblings added as subviews (as per a solution to a previous question). On launch TableView is in front. When you select a cell then method in the app delegate is called which swap them out putting DetailView ...

NSScrollView gives error when scrolling "-[CALayer isEqual:]: message sent to deallocated instance"

Hello. I'm trying to fix my code but I have no idea why I'm getting these errors: modifying layer that is being finalized - 0x11818240 2010-09-10 02:35:53.022 iPhone Monkey Curling[1606:207] modifying layer that is being finalized - 0x11818240 2010-09-10 02:35:53.023 iPhone Monkey Curling[1606:207] modifying layer that is being finalize...

error when trying to undo Context

i try to undo myContext from save state then after i draw the line i call undo method to restore my context to previous but it report error <Error>: CGContextRestoreGState: invalid context code - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint currentPoint = ...

MKMapView inside Tab Bar and Navigtion Controller hides Google branding

I just received the following message when submitting to the app store: In addition, the application displays images provided by Google Maps without the corresponding Google branding, we cannot post this version to the App Store I have a TabBar with a NavigationController inside. The Navigation Controller loads the map in ...

Pattern alignment when using UILabel with groupTableViewBackgroundColor

I have several UILabels in table cells, and I thought I could set them to be opaque and then setBackgroundColor:[UIColor groupTableViewBackgroundColor]] to make them have the table background. The grouped table background color in the UILabel isn't aligned with the table's background, though, so the lines are broken. Is there any way to ...

Editing a custom Tableview

Hi, I have a table view with custom cells. When i enter the editing mode, no edit buttons (delete/insert) are shown but editingStyleForRowAtIndexPath() and setEditing() are called. Do i have to do this drawings by myself or have i just forgotten something ? Thanks Claus ...

How can I avoid a crash when VoiceOver encounters UIPickerView as subview of UITableViewCell contentView?

In my app I have a UIPickerView as a subview of a table cell's contentView. I disable scrolling in the table view, and the arrangement works fine under normal circumstances. However, I've found that when VoiceOver (or the Accessibility Inspector) is turned on, the app crashes as soon as the picker is due to get focus. The error is: -[U...

On iOS, can I access the system-provided font's TTF file

I'm trying out FTGLES to dynamically display text in arbitrary fonts on OpenGL-ES on iOS (cf. my SO question here). That library seems to require direct access to the TTF file to use the font. Using kosher methods, can one directly access -- by path -- the system font files on iOS? I've RTFM'd and couldn't find anything. Barring that, d...

Dynamically load VewController from TableView Row Selection

Hello UIViewController *viewVC = nil; NSString *TcodeNib = [selectedObject valueForKey:@"ViewControllerName"]; // Create the next-level view controller if ([TcodeNib isEqualToString:@"FirstViewController"]) { viewVC = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil]; } else if ([TcodeNib isEqualToStri...

Navigating thru views with back / forward buttons (like a browser < > )

Hi, I have 3 tableviews (each has ca. 100 rows). The last view is a simple UIView (detailview). My idea was to create a navigation like a browser. Structure: Table1 > Table2 > Table3 > Detail Navigation sequence: (sry can't publish images :-| ) Table 1 ACTION +--------------------+ | | +-------...

Can't add a UISplitView as a Tab Item in IB?

Is there a reason why I can't add a UISplitviewController as the child of a UITabBarController in Interface Builder? I realize I could do this programatically, but all of a sudden I'm questioning if this is a legit way to go. This is what I'm planning on doing: Create a Master View Controller (UITableViewController with accompanying ...

using tabBar Delegate methods from tabBarController.

Hi I have a tabBarController,I want to use the delegate method of tabBarDelegate not of the tabBarControllerDelegate.i.e; I want to use - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item I am doing this: self.tabBarController.tabBar.delegate = self; and then using the above method but the problem is that the above...

calling viewDidLoad after some delay

Hi The scenario is as follows: My application has a tabBarController on tapping a tab there occurs some parsing of XML from server which takes some time.The data recovered from parsing is gonna be there on the view of the selected viewController(i.e; the data is used in the viewDidLoad method).Now how can I ensure that the viewDidLoad ...

UITableView weird crash on row deletion

I have an UITableView whose rows can be deleted. this table view has a search bar at the top. the problem is: if search was used, application crashes when I try to delete any row from the table view. there is no information in the debugger console. all I have is function stack from the debugger: Any ideas what it can be? UPDATE 1: cr...

replaceSublayer example

I have the following code and I can't seem to get it to work. First I create a view with a layer. UIView *view = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 100)] autorelease]; CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = view.bounds; gradient.colors = [NSArray arrayWithObjects:(id)[[UIColor blackColor...

Overridden UIPickerView instantiated on simulator but not on device.

Hello all. In my project I have a subclass A of a UIPickerView. In Interface Builder I have a UIPickerView whose type I have changed to my subclass A. In another class B, also defined in my code, instantiated in Interface Builder and linked to A via its outlet, it refers to A with an IBOutlet field A *mySubclass. The problem is this: W...

Odd behavior when showing UIPopoverController

Hello, In my iPad app, I save the state (visible/not visible) of a popover. So, during the launch of the app I initialize the UIPopoverController and tell it to show itself by using presentPopoverFromBarButtonItem:permittedArrowDirections:animated:. For the first argument (UIBarButtonItem), I use self.navigationItem.rightBarButtonItem. ...