iphone

enable "Search Button" even tough search bar textfield is empty

Hi there, I'm looking for a way to enable the "Search"-Button on the Keyboard even tough the search bar's text field doesn't contain text at that very moment. background is, that along with the term entered in the search bar's textfield i'll send other information to my backend. A Search for a null-term would then make sense (in my sco...

How to load several nib files with NSBundle loadNibNamed: ?

I'm trying to have my view hierarchy loaded through calls to loadNibNamed. For a single nib, in my ApplicationViewController : UIViewController : - (void) loadView { [super loadView]; [[NSBundle mainBundle] loadNibNamed:@"ApplicationViewController" owner:self options:nil]; } But then in Su...

Connecting iPhone directly to a 3rd party device via wi-fi

I'm interested in developing hardware which would communicate via wifi with an iPhone. I know this is typically accomplished over a home network or the like, but I was hoping I could stick a chip (I'm currently looking at a Microchip TCP/IP Stack with BSD socket) into the device that would negate the need for a router middleman. Basicall...

Developing apps for both iPhone and Android

We have customers asking for apps that can run on both iPhone and Android. I realize this will mean two different development projects, but wonder if anyone has any advice/creative tips on this subject? e.g. Ways to maximize shared resources? NOTE: Realize making the app web-based would be most effective way, but looking for advice on...

iPhone : how to bring up the UI faster?

I'm currently developing a client similar to twitter. The app has 5 tabs, and are all table views controllers. It seems simple enough, but the start up time (from hitting the app on the menu..to the black screen+status bar ...to the user interface) is 18 seconds! I want to slice this down to at least 5-6 seconds and don't want to have ...

Detect click event on UIButton placed on camera overlay view

Hi All, I have an overlay view placed on camera view controller. The overlay view has a button on it. How to detect click event on the button and display a new modal view controller on that button click... Please help. ...

How implement this option ? {iPhone SDK}

Hi , is there any way to program this option in xcode ? i don't think so this is text Alignment , it's something like text direction on microsoft office ! ...

Using UIWebView displaying certain PDFs renders some text incorrectly

Occasionally, when loading a PDF (using a UIWebView), parts of the text will appeared 'garbled'. If you zoom in or out on the pdf, the text will change its 'garbledness'. This occurs on multipage pdfs with images and texts and seems to only happen on certain pieces of text, but the font doesnt seem to be the issue as the next line or s...

Adding devices to team provisioning profile

I need to add a device to my team provisioning profile, however I do not physically have the device so I can't hook it up to my computer so Xcode can't add the UDID to my devices and to the team provisioning profile. Is there a way to add it manually to the team provisioning profile, I can't figure out how to edit it. Also when I add t...

adhoc distribution with time limits

Is it possible to distribute an app via adhoc or inhouse distribution that will only run for a limited period? The provisioning profiles do not seem to allow a cut off date to be set. Thanks ...

i want to fix my table view while i am scrolling

while i am scrolling my table view gets moving upwards .. i hav created table view programmatically without using IB so i should able to fix the position of table view while scrolling also... how to do this.. any suggestions appreciated.. ...

Load songs from iPod Library right after sync

Hi. I'm developing an iPhone application that uses the iPod library to play some songs. I load the songs with the code below. The problem is, when running this code right after the device has been synced with iTunes, there is a problem. Apparently the iPod Library needs to be updated, and it takes some time. If I go to the iPod Applicat...

Getting distinct list of ID's in CoreData

What's the most efficient way to perform this query on a CoreData table? To use the standard employees database model -- I want DISTINCT department ID's for all departments that contain employees with job-description "chef." As it happens, there is only a single table (Employees) relevant here -- I don't actually have a departments tab...

UISwitch and UITableViewCell iOS4

Hi All, Caveat: I have looked for the answer to my question and several come close, but I'm still missing something. Here is the scenario: I want a way to create UITableViewCells that contain UISwitches dynamically at run time, based on the data in a table (which I can do). The problem becomes connecting the switches such that I can...

i want to display cells in table view with some gap between them

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [topics count]; } - (UITableViewCell *) getCellContentView:(NSString *)cellIdentifier { CGRect cellFrame = CGRectMake(0,0,320,45); UITableViewCell *cell = [[[UITableViewCell alloc] initWithFrame:cellFrame...

Setting UITextView selection on tap

I've got a UITextView that is not editable by default so that data detectors show addresses and phone numbers. I'd like to be able to let the user single tap anywhere in the text view to set it editable and put the insertion point there. Unfortunately, I can't get the insertion point and a single tap just enables editing of the text vi...

NSFetchedResultsControllerDelegate methods not being called when camera image saved in didFinishPickingMediaWithInfo using Core Data

My application allows a user to take an image with the camera or select an image from their photo library. Inside didFinishPickingMediaWithInfo I get the image and save it to the database using Core Data. When I get an image from the photo library I see the following NSFetchedResultsControllerDelegate methods being called: – controlle...

Objective-C, iPhone RSS Reader Application Query - How to organize your RSS Feed Display into groups?

Hi! I've been very unfortunate with my programming. I am still rather new to Objective-C, but I am trying to learn as quickly as possible. I need to complete an RSS Reader for iPhones application, a relatively simple one which parses the rss feed, displays it in a navigation-table view and when you click on an article you are taken to ...

Force autoresizingMask to apply to a UIView

I have a notification view which I'm adding to the application's window after launch, so it hovers above all other views. When the user rotates the device, the view does not autoresize like those owned by a UIViewController. Is there a way to manually ask for the view's autoresizingMask to be applied? Or, alternatively, how can I have...

Blurred text in Iphone 4 browser when loading content dynamically

I am using the Jquery/Jqtouch libraries for an iphone compatible site. I am now stuck with a problem just in iPhone 4 (not in 2g, 3g or 3gs) where the text becomes blurry on one specific scenario. Below is how it happens The site has one common div container. The container is filled with content dynamically based on the user action....