通过使用导航控制器,容器视图的行为非常奇怪,所包含的视图以某种方式扩展了

时间:2018-10-03 12:50:36

标签: ios swift uinavigationcontroller

enter image description here

当我在导航控制器中嵌入标签栏的第一项时,请参见上图,因为我需要做地图视图时,该视图已展开,并且表现得很奇怪,首先是Google徽标幻灯片从顶部到底部,然后消失了,因为某些场景被关闭了,然后谷歌地图的中心在右上角而不是在屏幕的中心 我发现问题出在哪里

这是我的代码

create or replace FUNCTION  EXPORT_TABLE_TO_CSV_FILE
(
       p_query     in dbms_sql.varchar2a,
       p_separator in varchar2 default ',',
       p_dir       in varchar2,
       p_filename  in varchar2,
       p_is_head   in boolean default false
)
RETURN NUMBER
is
       l_output        utl_file.file_type;
       l_theCursor     integer default dbms_sql.open_cursor;
       l_columnValue   varchar2(4000);
       l_columnValClob clob;
       l_status        integer;
       l_colCnt        number default 0;
       l_separator     varchar2(10) default '';
       l_cnt           number default 0;
       l_col_desc      dbms_sql.desc_tab;
       l_offset        integer;
BEGIN
       dbms_sql.parse
       (
           l_theCursor
         , p_query
         , p_query.first
         , p_query.last
         , true
         , dbms_sql.native
       );

       dbms_sql.describe_columns
       (
           l_theCursor
         , l_colCnt
         , l_col_desc
       );

       for i in 1 .. l_colCnt loop
           if l_col_desc(i).col_type = 112 then
               dbms_sql.define_column
               (
                   l_theCursor
                 , i
                 , l_columnValClob
               );
          else
               dbms_sql.define_column
               (
                   l_theCursor
                 , i
                 , l_columnValue
                 , 4000
               );
          end if;
       end loop;

       l_status := dbms_sql.execute(l_theCursor);
       if dbms_sql.fetch_rows(l_theCursor) > 0 then
               l_output := utl_file.fopen( p_dir, p_filename, 'w', 32767 );
               if p_is_head then
                       for i in 1..l_col_desc.count
                       loop
                               utl_file.put(l_output, l_separator || l_col_desc(i).col_name);
                               l_separator := p_separator;
                       end loop;
                       utl_file.new_line( l_output );
               end if;

               loop
                       l_separator := '';
                       for i in 1 .. l_colCnt
                       loop
                           if l_col_desc(i).col_type = 112
                           then
                              l_offset := 1;
                              dbms_sql.column_value
                              (
                                   l_theCursor
                                 , i
                                 , l_columnValClob
                              );
                              utl_file.put( l_output, l_separator );

                              loop
                                    l_columnValue := dbms_lob.substr(l_columnValClob, 4000, l_offset);
                                   -- dbms_output.put_line(l_columnValue);
                                    l_offset := l_offset + 4000;
                                    utl_file.put( l_output, l_columnValue);
                                    exit when trim(l_columnValue) is null;
                               end loop;
                           else
                              dbms_sql.column_value
                              (
                                   l_theCursor
                                 , i
                                 , l_columnValue
                              );
                              utl_file.put( l_output, l_separator ||  l_columnValue );
                           end if;

                           l_separator := p_separator;
                       end loop;

                       utl_file.new_line( l_output );
                       l_cnt := l_cnt+1;

                       exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
               end loop;
       end if;
       dbms_sql.close_cursor(l_theCursor);
       utl_file.fclose( l_output );
       return l_cnt;
END;

当我删除导航控制器时,一切正常,一切顺利:(

0 个答案:

没有答案