iphone

Make UIScrollView wrap around

Hi, I have a UIScroll which has eight or so pages. My aim is for them to 'loop' around so that when the user reaches the last page the first page will be the next page (and vice versa) so that the user could scroll through the pages endlessly. What is the best way to achieve this? I am working from this example from Cocoa with Love. ...

How can I assign properties correctly?

I have a UITabBarController that I would like to assign to another object, so that that object can control it: watchListView.tabBarController = self.stTabBarController; During this assignment the value of both self.stTabBarController and watchListView.tabBarController are 0x0. How can I assign the UITabBarController's? ...

validate iphone push notification token?

I've not yet implemented push notifications in my app. My understanding is that the app running on the device must request a token, then send this token to my server, and that my server must pass this token to Apple whenever I want to push a message to the device / app. Is a requested push token specific to the app, or do all apps on t...

Code not executing as expected when loading URL into UIImageView

Im having trouble with my code, it seems that it never executes right. I've tried many things from UIActivity, Sliders, UITextVieweer etc... but it never changes, The code is running using Navigation based application from xCode. loadingTview is a Textview, The problem is, see where loadingTview is, that never works, it always hangs,...

Does my client need a developer account to submit the app I made them to the App Store?

Hello, I wonder if someone could offer insight here: I work for an independent multimedia firm who builds communications material for their clients. We're currently working through our first iPhone app. So, my shop has now completed an app that conforms to our client's brand, and we wish to deploy this app to the App Store on behalf of ...

Why a DataCallBack method listen in the background is not being invoked?

Hi, I've been working with CFNetwork to create a client application for iPad, it is a small application, nothing fancy. This is how I create the connection to the server (running in windows). - (void) startConnection { char ip[] = "192.168.0.244"; NSString *ipAddress = [[NSString alloc] initWithCString:ip]; /* Build our s...

How to switch tabs in UITabBarController?

I have a UITabBarController that is being presented modally from a RootViewController: stvTabBarController = [[UITabBarController alloc] init]; stvTabBarController.delegate = self; stvTabBarController.viewControllers = [NSArray arrayWithObjects:stvNavController, scheduleNavController, nil]; stvTabBarController.selectedViewController = s...

Source for iPhone graphics?

I have found several great sources for iPhone icons, but are there any "stock" graphics available (free or paid) for other UI elements? For instance, a UITableView skin, background images, or custom control artwork. ...

How to temporarily lock iPad/iPhone orientation

At a certain point in my application, I would like to temporarily disable the rotation feature - effectively "lock" the orientation in code, similar to what the lock toggle switch does on the iPad in hardware. I'm currently doing: [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications] and when I'm through, I call: [[...

Scrolling UITableView to valid index path throws error

Why would the following code throw this error? if ([self.tableView.dataSource numberOfSectionsInTableView:self.tableView] > 0 && [self.tableView.dataSource tableView:self.tableView numberOfRowsInSection:0] > 1) { [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0] atScrollPosition:UITableViewScrollPosi...

Accessing Shared Delegate verus iPhone/iPad delegate?

How do I access the shared delegate or the device specific "delegate" in a Universal App? I want to store properties on the Shared delegate and put basic logic there, but if I want to do, say iPhone specific stuff on the iPhone delegate, I would assume that I need to access the two delegates separately. Is this correct? How do I acce...

Problem with uitableviewcell subview.

hey I added a subview(imageview)to my uitableviewcell, it is working fine but when I scrolls up the same subview is added on top of the cells. It is happening to all cells when I scrolls up. I donno Where am I wrong. Please any suggestions. ...

jQuery $.live() doesn't work with table rows on the iPhone

Hello. I'm making table rows click-able with jQuery's $.live() function. Works perfectly on Chrome, Firefox and even desktop Windows Safari -- but not on the iPhone. $.bind() works everywhere, but for obvious reasons I'd like to use the other function. Does anyone have any idea why it doesn't work and how can I fix it? Example code belo...

UIImageView Question - iPhone SDK

Hello, I want to write an "if" statement of an uiimageview to see which image is in the image currently. So if the uiimageview has this certain image, lets say "hello.png", then do this action. If it has "bye.png" then do this action. Thanks, Kevin ...

Private iPhone apps?

Hello, i would be interested in writing apps that connect to intranets or extranet. In other words i would like to make private apps for my clients but if the only way to sell apps is the AppStore this can be downloaded by everyone and this is bad. Do you know if there is a way to distribute enterprise apps only to a certain number of pe...

Why won't this view controller init? (NEVER MIND)

In trying to debug why a view controller is initing empty, I've ended up a sort of weird place. Check this out: OffersSearchController *searchController = [[OffersSearchController alloc] initWithNibName:@"This is a completely bogus nib name." bundle:nil]; Not a single complaint. I've seen that sort of construct cr...

Warning about duplicate NSNotification observations

This isn't a question so much as a warning to others to save them some time. NSNotificationCenter on iOS 3/iPhone OS 3 (I'm assuming also Mac OS X and iOS 4) has the following behavior: If you register yourself multiple times for the exact specific notification, NSNotificationCenter will NOT recognize the redundancy and instead will fi...

iPhone: how can I activate a text field programmatically (and not wait for the user to touch it)

I have a UIViewController that is a UITextFieldDelegate, and I would like the keyboard for its text field to appear as soon as the user navigates to this view, without having to actually touch the text field. It would also be nice to be able to "dismiss" the entire view when the keyboard is dismissed. I am loading the view from a xib fil...

XCode translate matrix ala ActionScript?

Hi gang, I am wondering if there is a way to translate the underlying matrix of a layer much like you can in ActionScript3. In AS3 I can get the transform of a layer and shift it to, let's say, make the center of the layer the anchor point, rather than the upper-left corner. The reason I ask is because I am trying to rotate a layer (c...

Is it necessory to define property for an IBOutlet field?

I have seen many iPhone examples to use IBOutlet as a field linked to a UI control in Interface Builder, and the field is also defined as property in the interface class. For example, the following codes are similar ones from Apple example codes: // in .h file @interface MyViewController : UIViewController { IBOutlet UILabel* _firstNa...