Hi guys, I need a way of creating a UIView dynamically. Thus, the parent class could look for say a count of array items, and create UIViews on the fly of the amount of items in the array.
The views need to be allocated dynamically, do I can't create them on the fly.
Can you help?
...
I have a Core Data app that has a bug that causes the app to crash and I have not tracked down its cause yet. One of the results of the crash is that the next time the app is started up it can not open the persistent store used by the application previously. The following error is returned from the addPersistentStoreWithType: method:
...
So I have a UITableView in which I am doing batch insert/delete/reloads into. Every once in a while, the list data changes, so I batch update the differences in the list. I'm basically inserting new rows, deleting rows that are no longer there, and reloading rows that exist in both the old and new data. For example:
Before, the list dat...
I'm having a very strange problem with the UINavigationController.
I found a very similar question here:
http://stackoverflow.com/questions/1542040/uinavigationcontroller-not-popping-uinavigationbar-items
but the solution there had to do with the fact that the guy had added a category to NSMutableArray, and I'm not doing anything like t...
Hi all,
i'm rather new to programming in cocoa but I've been working on learning the language quite diligently up until I hit this snag that I can't seem to circumvent/hack my way around, (not that I'd want to. I'd prefer to do it right!)
Where i stand, In IB i have a toolbar that has a button and what I'm trying to do is mimic the map...
Hey guys, I am wondering how to put a view on the back button of navigation bar?
Not on title view, but on the back button.
It seems like to me that the back button is a UIBarButtonItem, which doesn't inherite UIView...
Help please!
Thanks!
...
I need to store two types of objects, Feed and Folder, in an array in Core Data. For example:
Array
Feed
Feed
Folder
Feed
Folder
Folder
…etc...
I know about BWOrderedManagedObject for storing objects in order in Core Data, but I'm not sure how to store mixed objects (the array needs to be mixed, since the i...
utilising xcode using the random function i want to switch to from a view to a randomly selected new view...can some one give me some direction.
...
Hi All
I am developing a iphone application. It is working fine on iPhone Simulator 4.0 but when I test it on my iPod (My iPod has latest version 4.0) then I get the error :
Couldn't register com.myApp with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or...
Hi,
my Context is a tableView controlled by a Navigation Controller. So when i select a row, a new view is pushed by the navigation controller.
Now i want also to "nudge" (like the effect on the start-screen to switch through the App-overview, i hope you know what i mean) to another view (also a tableView, similar to the first View) or...
I tested my application on 8GB iPod Touch using iOS 4.0(within multitask), it works. But when I change my original source code, and built it in the simulator. The application load, but nothing appear, it all dark. What I should do to solve the problem? I check the console, it didn't show any error msg. Thank u.
...
Hi,
Accessing Web Services inside an iPhone app is a matter for which I did not find a clear, beautiful solution yet. I'm not talking about how to send queries or parse responses here, but about a "big picture" answer.
Disregarding the server-side technology, how do/would you plug your Model objects to your Web Service ? How do you des...
Hi,
I am using the UIWebView on iPad, which I initialize by the code below. The problem is that the view is never displayed on the top of the page just under the Status bar, but there is another 44px space (filled with black color) - for Navigation Bar, which I do not want to display. Any hints how I can make the UIWebView be displayed ...
Hi
I am getting image from Xml feed and then displaying it in table cell what I want to do is to resize image to minimum size of 5kb my code is.
int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"];
NSURL *url = [NSURL URLWithStrin...
Hi all:
I have a predicament, in as much that I need to create an arbitrary amount of UIView Objects. I have an NSArray and what I need to do is create UIView Objects for the number of items in the array, so I got an int from the [NSArray count]; method, so I know the number of objects needing creating, but the way to implement this has...
Hello everyone,
I am using iAd code implementation from the iAd class reference:
I have implemented the iAd delegate, however I get some errors when I directly copy and paste the code from the website. I have created new projects and tried entering in the methods from the website directly, but I still get the same errors. You guys can...
Can a view be managed by 2 view controllers? An example is the Root View controller has a Table View Controller inside it, The view of both these controllers is the table view.
With this configuration the app loads but crashes during run-time where you scroll the table view. Whats wrong here?
...
I have a UITableView where I have the backgroud color set via
UIView *myView = [[UIView alloc] init];
if ((indexPath.row % 2) == 0)
myView.backgroundColor = [UIColor greenColor];
else
myView.backgroundColor = [UIColor whiteColor];
cell.backgroundView = myView;
[myView release];
The problem I find is that when I edit a table (...
It's been more than 3 years since Cocoa-Touch is out, the licensing is permissive now.
Many, many apps have UIImageViews that are actually buttons, and load from the internet.
Is there any open UIImageView subclass (or similar) that supports:
adding a target for the touchUpInside event (maybe others too)
initializing with a NSURL, lo...
I need to create a custom UILabel to display some dynamic multiline text. The text color is white on a black background. But the background should only be visible right behind the text to simulate the effect of an selected text area.
I started with subclassing UILabel and overriding drawTextInRect to do my own drawings.
- (void) drawTe...