I have given a div height of 150px. The height is not shown in IE8 compatibility view. Please find the URL of the page below. The css class name is MenuList.
Test
HI all,
i m working on an app,which need localization.
I am using a tab bars, having five tabs, and navigation controller.
i am able to change title according to locales,but the navigation controllers rightbarbutton which navigates to previuos view, showing
English(united states), when i change local to english.
What i am doing wrong.
plz suggest me some solution.
regard
shishir
Hi,
I would like obtain a SplitView on my ipad application with my left menu in a portrait orientation such as iPad settings. For now in portrait orientation I have a content view in full screen and I have a button at NavigationBar which includes a popover with my left menu.
Thank you for your responses.
I am using an UI search bar into my iPhone application, I would like enable Cancel button of Search bar at the time of view did load but not able to do so as its gets activated when a user starts editing the search bar. To be more precise I would to achieve the serach functionality that has been provided by Apple in Stock application
I have been messing around with a way to justify align a collection of UIView subclasses within a containing view. I am having a little bit of trouble with the algorithm and was hoping someone could help spot my errors. Here is pseudocode of where I am now:
// 1 see how many items there are
int count = [items count];
// 2 figure out how much white space is left in the containing view
float whitespace = [containingView width] - [items totalWidth];
// 3 Figure out the extra left margin to be applied to items[1] through items[count-1]
float margin = whitespace/(count-1);
// 4 Figure out the size of every subcontainer if it was evenly split
float subcontainerWidth = [containingView width]/count;
// 5 Apply the margin, starting at the second item
for (int i = 1; i < [items count]; i++) {
UIView *item = [items objectAtIndex:i];
[item setLeftMargin:(margin + i*subcontainerWidth)];
}
The items do not appear to be evenly spaced here. Not even close. Where am I going wrong?
Here is a shot of this algorithm in action:
EDIT: The code above is pseudocode. I added the actual code here but it might not make sense if you are not familiar with the three20 project.
@implementation TTTabStrip (JustifiedBarCategory)
- (CGSize)layoutTabs {
CGSize size = [super layoutTabs];
CGPoint contentOffset = _scrollView.contentOffset;
_scrollView.frame = self.bounds;
_scrollView.contentSize = CGSizeMake(size.width + kTabMargin, self.height);
CGFloat contentWidth = size.width + kTabMargin;
if (contentWidth < _scrollView.size.width) {
// do the justify logic
// see how many items there are
int count = [_tabViews count];
// 2 figure out how much white space is left
float whitespace = _scrollView.size.width - contentWidth;
// 3 increase the margin on those items somehow to reflect. it should be (whitespace) / count-1
float margin = whitespace/(count-1);
// 4 figure out starting point
float itemWidth = (_scrollView.size.width-kTabMargin)/count;
// apply the margin
for (int i = 1; i < [_tabViews count]; i++) {
TTTab *tab = [_tabViews objectAtIndex:i];
[tab setLeft:(margin + i*itemWidth)];
}
} else {
// do the normal, scrollbar logic
_scrollView.contentOffset = contentOffset;
}
return size;
}
@end
I'm having difficultly adding querystring parameters to link_to UrlHelper. I have an Index view, for example, that has UI elements for sorting, filtering, and pagination (via will_paginate). The will_paginate plugin manages the intra-page persistence of querystring parameters correctly.
Is there an automatic mechanism to add the querystring parameters to a give named route, or do I need to do so manually? A great deal of research on this seemingly simple construct has left me clueless.
i am working on photos options in my app.
i have a button and imageview on my activity. when i click the button it will redirect to gallery and i would like to select an image. the selected image will appear in my image view.
how to do that? any idea?
A page within our MOSS publishing website has a property which is a lookup field.
I only want the selected text to be displayed when you view the page not in edit mode, but when I use the Microsoft.SharePoint.WebControls.LookupField it generates a hyperlink to the SharePoint list item (obviously bad).
Is there a way around this, short of creating my own lookup field control?
When i running Android App i got fallowing error..
[2010-03-27 02:47:28 - HelloAndroid] Connection with adb was interrupted.
[2010-03-27 02:47:28 - HelloAndroid] 0 attempts have been made to reconnect.
[2010-03-27 02:47:28 - HelloAndroid] You may want to manually restart adb from the Devices view.
How can i fix this..
Thanks
Atul Yadav
Hello,
I am using $data in all my views $this->load->view('my_view', $data);
I have also autoload a Controller following this guide Extending Core Controller
But I want to make $data global because in views there is a sidebar which is constant for whole project and displays info fetched through db in autoloaded controller
Currently I have to manually write $data['todo'] for each and fetch info from autoloaded model.
Thank You.
Is there a way for an Android user to browse the SQLite databases on his/her phone and view the data in the databases?
I use the SoftTrace beta program a lot. It's great but has no way that I can find to download the data it tracks to a PC.
Thanks
Hi i am writing a HTML parser for helping with some job duties,
I can enter the site using IE explorer.
but using csharp code i get an error
i have tried using
client.Credentials = CredentialCache.DefaultNetworkCredentials;
client.Proxy.Credentials = CredentialCache.DefaultCredentials;
i don't get the requested page, but an error page.
if i can view page in explorer there must be a way to retrieve its html in C#
(note that same page in other browsers requires authintication - not in IE)
appreciate the help
HEllo,
I have a situation here, I have an app , in this app I save some files to documents folder. Now I want to export these files or view these files from mac.
Suggest some way for this.
Thanx in advance
From within TFS 2008, is there a way to view the disk space taken up on the server by a project (or by all projects)? Or is this something that can only be done by looking directly at the underlying database?
What object is responsible for dipatching the UIViewController rotation method calls, i.e:
– shouldAutorotateToInterfaceOrientation:
– willRotateToInterfaceOrientation:duration:
– willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
– willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
– didRotateFromInterfaceOrientation:
I imagine it is UIApplication (but maybe the AppDelegate or UIWindow).
The next question, is how does the object know which UIViewController to talk to?
How does it know which UIViewController has its view as the subview of the window?
Is there a message you can send or a property you can set (of some object) that sets the "Active" UIViewController for the app?
I need to generate and embed a time series chart into an ASP.NET application.
Most run-time charting tools generate poor time axes, especially if the time scale is dynamic ie the user may choose to view data over a time scale of days, weeks, months or years.
I'm looking for recommended tools that can be integrated into my app. Two that show promise are Chart Director and Google's annotated timeline visualization. Both are quite different in their implementation and have pros/cons.
I'm trying to edit an XML schema in Visual Studio 2010 Ultimate RC, but when I go to the toolbox (with the schema open and focused) there's absolutely nothing in the Toolbox view, even when every tutorial out there that I've read tells me that there should be. I've tried using the context menu option for resetting the Toolbox to no effect. Is there something I'm missing ? Something I need to install to get this feature of Visual Studio going ?
To fill NSScrollview with pattern image I use - (void)setBackgroundColor:(NSColor *)aColor method where aColor is created with + (NSColor *)colorWithPatternImage:(NSImage *)image method. Despite of what isFlipped returns for NSScrollView and its content view, pattern start repeat from bottom-left corner while I want it to start from top-left corner. How can I achieve that?
I have an iPhone application that uses a timer and every time it creates some UILabel and places it onto the UISrollview. What i want is to clear the scroll view every time before it puts UILabel onto the ScrollView.
So guys please help me to clear the contents of the UIScrollView. I'm just not been able to do that.
Looking for your reply
I use Delphi 2010 . I am useing twebbrowser to load up HTML source and view .
Now I want to click on an area(Background, Links,etc)
in the webbrowser and get the styling in the CSS file that styles the HTML.
Example I click on the H3 region and I want to be taken to the h3{ color: white; } in the CSS.
Any help at all is much appreciated this is hard for me to figure out.
I'm trying to use a custom sort with a ListView, as described in this blog entry.
I'm doing
ListCollectionView view = (ListCollectionView)CollectionViewSource.GetDefaultView(TheList.ItemsSource);
as recommended there and in several other places, but for some reason I'm getting "Unable to cast object of type 'MS.Internal.Data.EnumerableCollectionView' to type 'System.Windows.Data.ListCollectionView'." (TheList is of type ListView).
What could be causing this?
I have a tree view
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1"
ShowExpandCollapse="False">
</asp:TreeView>
As you can see, root node is hidden. However when the treenode gets rendered, there is a whitespace to the left of each leafnode. This is probably because the root node is hidden but is taking up space. How do i remove that white space.
I'd like to use the UIView "sucking" transition (view is "sucked" into a point) referenced here:
http://iphonedevwiki.net/index.php/UIViewAnimationState#Using_suckEffect
The method above, however, uses private APIs, which makes it next to useless for an App Store app. How can I recreate a similar effect without relying on private APIs? I'm guessing the answer has to do with OpenGL, although I have zero experience there.
When I drop a UISearchBar into my view inside Interface Builder, and change its style to Black Opaque, the cancel button stays unfittingly blue / gray and doesn't become black.
How can I make the cancel button black?
I'm in a django website's I18N process.
I've selected two potentially good django-apps :
django-modeltranslation wich modifies the db schema to store translations
django-dbgettext wich inspect db content to create .po files and uses gettext
From your point of view, what are the pros and cons of those two techniques ?